If startnumber=-1, the seed is initialized randomly.
If startnumber=n (where n is not 0 or -1), the seed is initialized to n.
If startnumber=0, the next random number is generated based on the existing seed.
After initializing the seed, continue with RAND (0) to generate each random number.
|