This site is mobile accessible. Press the "Tap Here" button to use a different font-size.
Smartphone icons created by Freepik - Flaticon
returns a random number between 0 (inclusive), and 1 (exclusive):
Math.random(); // returns a random number
always returns a number lower than 1.
used with can be used to return random integers.
Math.floor(Math.random() * 10); // returns a random integer from 0 to 9
Math.floor(Math.random() * 11); // returns a random integer from 0 to 10
Math.floor(Math.random() * 100); // returns a random integer from 0 to 99
Math.floor(Math.random() * 101); // returns a random integer from 0 to 100
Math.floor(Math.random() * 10) + 1; // returns a random integer from 1 to 10
Math.floor(Math.random() * 100) + 1; // returns a random integer from 1 to 100
function getRndInteger(min, max) { return Math.floor(Math.random() * (max - min) ) + min; }
This JavaScript function always returns a random number between min and max (both included):
function getRndInteger(min, max) { return Math.floor(Math.random() * (max - min + 1) ) + min; }
Eventually the navigation links, above, will be replaced by these (previous) and (next) buttons below.
JavaScript icons used in the buttons provided by ICONS8.COM. Smartphone icons created by Freepik - Flaticon