RANDOM([min][,[max][,seed]]) A pseudo-random number is returned. If no arguments are supplied, the number will be between 0 and 999 (inclusive). If one argument is supplied then the result will be between 0 and that number. If both min and max are given, then the result will be between min and max inclusive. min must be no greater than max and the magnitude of the range (that is, max - min) must not exceed 100000. min, max and seed must be whole numbers if they are specified. Usually the third argument (the seed) is not supplied. In this case, on the first call to this function the random number generator is seeded from the system clock, and the seed is not affected on further calls, so that a `good' sequence of random numbers is obtained. The seed may be set to a specific value on each call by supplying the third argument. To gain a predictable sequence of random numbers, the seed is specified on the first call but not on subsequent calls.