Why is my multiply random number function not working please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is my multiply random number function not working please

solved thanks

10th May 2017, 10:54 AM
AceDev
2 Answers
+ 6
If you read the error message, you will find the error... Replace: var one = Math.floor+1(Math.random()*10); var two = Math.floor+1(Math.random()*10); ... by: var one = 1+Math.floor(Math.random()*10); var two = 1+Math.floor(Math.random()*10);
10th May 2017, 11:01 AM
visph
visph - avatar
+ 3
You have edited the description of your question by replacing it with << solved thanks >>... but: > better way to edit the title of the question by adding ( not replacing ) the "solved" information to it, eventually put it as tag also > let the original description for future readers comprehension of the thread > thanks by upvoting appreciated answers, attributing "best answer" to the most useful one... and post to say thanks, but almost to say if answer was helpful ( edition of question doesn't throw notification to followers of the thread ) as much as when they doesn't ( the last time you've answered back was for telling that the solution provided wasn't working :P )
10th May 2017, 11:51 AM
visph
visph - avatar