Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

M-6 Create a random Number within a range

Create a function that accepts a low number and a high number and creates a random number between these two thresholds.

ex. createRandom(1, 10) creates an integer between 1 and 10.

Make this re-usable with many combinations to be sure that it works.

At the end create a number between 50 and 55 for example. 

The final random number should be an integer.

Create a random number within a given range

Kostas Diakogiannis
Module by Kostas Diakogiannis, updated more than 1 year ago
No tags specified