unsigned long int random_generator::get ( unsigned long int  n = 0 )

Function that returns a random number from the chosen generator. From GSL manual: If n is not set, then the minimum and maximum values depend on the algorithm used, but all integers in the range [min,max] are equally likely. The values of min and max can determined using max() and min() functions. If n is set then the 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