โ† Ages 8โ€“10/Random: A Race Nobody Can Predict
๐Ÿ“– Story

Random: A Race Nobody Can Predict

Two racers, and even you don't know who wins. Math.random() gives a surprise number every time you press Run.

What you'll learn

Use random numbers to make your program different each run.

New command

Math.floor(Math.random() * 150)
๐Ÿ’ป Code Editorjs
๐ŸŽฌ

Press Run Code to see your creation!

โฎ Previous lesson