(Note: When I say "random" just assume I mean pseudo-random) I have heard that random numbers are generated using this method:
$X_{n+1} = (a X_n + b)\, \textrm{mod}\, m$
Using the time as the seed. But, using this algorithm, how is it possible to generate a random number in a certain range of numbers?