This generates a random value between the supplied values, using Mersenne Twister
597
1
6
250
0
1900
1999
2.9
Numbers come from PHP's mt_rand(), which uses the Mersenne Twister algorithm. It is fast and evenly spread, which makes it fine for games, draws, sampling and test data.
mt_rand()
Mersenne Twister is not cryptographically secure: with enough output, its next numbers can be predicted. Don't use it for passwords, keys, tokens or lotteries with money at stake. For passwords, use the password generator, which uses a secure random source.
Can I draw several numbers without repeats? Not in one go. Draw one at a time and skip any number you already have.
Is every number really equally likely? Yes. PHP scales the result to your range without favouring any number, so over many draws each value comes up about equally often.