unsigned long int random_generator::uniform_int ( unsigned long int  n )

Function that returns uniform random variable in range[(0, n-1].

Parameters:
n: specifies the range of random variable

From GSL manual: This function returns a random integer from 0 to n-1 inclusive by scaling down and/or discarding samples from the generator r. All integers in the range [0,n-1] are produced with equal probability. For generators with a non-zero minimum value an offset is applied so that zero is returned with the correct probability.

 All Classes Files Functions Variables Typedefs Friends Defines