3.1.1.8 Random number generation in programming. Flashcards
1
Q
Define the syntax for the random number method.
A
Math.random( );
2
Q
Define the syntax for generating a random number between two values.
A
Math.floor( (Math.random( ) * 10 ) + 1 );