NAME

rand - generates random numbers

SYNOPSIS

rand [seed=] [seed2=] [n=] [coord] [gauss]

DESCRIPTION

rand generates and prints out a random number. Without options it is a uniform deviate between 0.0 and 1.0 with a seed generated from the system time (one microsecond seed).

OPTIONS

seed= option allows you to specify an integer seed.

seed2= adds the seed to the time generated seed.

n= allows you to print out a sequence of the specified number of random numbers.

coord- prints out random coordinates in the form coordinate strings. The coordinates are uniformly distributed over the entire sky. The name field is the seed value.

gauss- prints out a zero mean Gaussian deviate with an rms of 1.0.


Program index