{"action":"opened","issue":{"url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6596","labels_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6596/labels{/name}","comments_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6596/comments","events_url":"https://api.github.com/repos/FreeCodeCamp/FreeCodeCamp/issues/6596/events","html_url":"https://github.com/FreeCodeCamp/FreeCodeCamp/issues/6596","id":129941558,"number":6596,"title":"Math.floor is not a function ?","user":{"login":"warrenonline","id":16505498,"avatar_url":"https://avatars.githubusercontent.com/u/16505498?v=3","gravatar_id":"","url":"https://api.github.com/users/warrenonline","html_url":"https://github.com/warrenonline","followers_url":"https://api.github.com/users/warrenonline/followers","following_url":"https://api.github.com/users/warrenonline/following{/other_user}","gists_url":"https://api.github.com/users/warrenonline/gists{/gist_id}","starred_url":"https://api.github.com/users/warrenonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warrenonline/subscriptions","organizations_url":"https://api.github.com/users/warrenonline/orgs","repos_url":"https://api.github.com/users/warrenonline/repos","events_url":"https://api.github.com/users/warrenonline/events{/privacy}","received_events_url":"https://api.github.com/users/warrenonline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-30T05:20:36Z","updated_at":"2016-01-30T05:20:36Z","closed_at":null,"body":"Challenge [Generate Random Whole Numbers with JavaScript](http://www.freecodecamp.com/challenges/generate-random-whole-numbers-with-javascript#?solution=var%20randomNumberBetween0and19%20%3D%20Math.floor(Math.random()%20*%2020)%3B%0A%0Afunction%20myFunction()%20%7B%0A%0A%20%20%2F%2F%20Only%20change%20code%20below%20this%20line.%0A%0A%20%20return%20Math.floor(Math.random()%20*%2010)%3B%0A%7D%0A) has an issue.\r\nUser Agent is: <code>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4</code>.\r\nPlease describe how to reproduce this issue, and include links to screenshots if possible.\r\n\r\nThis continually returns \"**Math.floor is not a function**\". Doesn't Math.floor have to be a function for this to work ?\r\n\r\nMy code:\r\n```javascript\r\nvar randomNumberBetween0and19 = Math.floor(Math.random() * 20);\r\n\r\nfunction myFunction() {\r\n\r\n  // Only change code below this line.\r\n\r\n  return Math.floor(Math.random() * 10);\r\n}\r\n\r\n```\r\n\r\n"}}