How to print random number in Js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to print random number in Js

I dont really understand math.random() Can somebody help me here’s a code Dunno how to make it print Can u plz help https://code.sololearn.com/Wh1LyfNwrtq7/?ref=app

24th Jun 2020, 7:33 PM
This is junk email
This is junk email - avatar
7 Answers
+ 3
How you intend for "print"? in console, you can use console.log. Anyway, see here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
24th Jun 2020, 7:40 PM
KrOW
KrOW - avatar
0
print as in print()
25th Jun 2020, 7:42 PM
This is junk email
This is junk email - avatar
0
*document.write()
2nd Jul 2020, 7:35 PM
This is junk email
This is junk email - avatar
0
sone btw
2nd Jul 2020, 7:35 PM
This is junk email
This is junk email - avatar
0
*done
2nd Jul 2020, 7:35 PM
This is junk email
This is junk email - avatar
0
(this question is solved)
4th Jul 2020, 6:32 PM
This is junk email
This is junk email - avatar
0
when i wrote the question i was thinking about print() in python then forgot but if you look at my code now its got alot better
4th Jul 2020, 6:39 PM
This is junk email
This is junk email - avatar