Zackorz Posted January 19, 2016 Share Posted January 19, 2016 Whenever i try to use Math.random(), i get the output: "Uncaught TypeError: Math.Random is not a function". I wonder how that can happen? "Math.random() is a normal" Javascript function... Link to comment Share on other sites More sharing options...
rich Posted January 19, 2016 Share Posted January 19, 2016 It's case sensitive. Your error says Math.Random, your code says Math.random. The lower-case version is correct, the upper-case will fail. Zackorz 1 Link to comment Share on other sites More sharing options...
Zackorz Posted January 21, 2016 Author Share Posted January 21, 2016 Sorry, i just written it down incorretly. The bug simply was in another line. I started to call this method there, but didnt finished writing it. Thanks anyway. Link to comment Share on other sites More sharing options...
Recommended Posts