From the NannyMUD documentation
2000-12-19
NAME
frnd - A fast and dirty random generator.SYNTAX
int *frnd([int MAX [, int MIN [, int NR [, int SEED]]]])DESCRIPTION
This is a fast (well, it's LPC) and dirty random number generator that will produce an array of random numbers. The periodicity is only about 2**30, which is considered quite bad. The routine returns a sequence of NR consecutive random integers in an array. The numbers are all in the range [MIN, MAX] (i.e. including both MIN and MAX in the range). The SEED is used to set the starting point of the sequence. It is a good idea to keep SEED in the interval [MIN, MAX].EXAMPLE
frnd(100, 0, 5, 0) gives ({ 21, 20, 0, 66, 70 }) frnd(1, 0, 5, 0) gives ({ 0, 0, 0, 1, 1 }) frnd(1, -1, 5, 1) gives ({ -1, 1, 1, 0, 1 })NOTE
There are no sanity checks on things here, as that would slow it down. Also, LPC is slow enough as it is, even on a good day. Thus, it is YOUR responsibility to give valid values. If you demand a very big array, strange buffers might overflow or you can get the dreaded 'Too long evaluation' error message.