What if we want a random number in a range, say from 40 to 50?
The rand() function generates a random decimal between 0 and 1, but we can multiply that and offset it!
rand()
=40+10*rand()