[Click] random function generator

Eddie Kohler kohler at cs.ucla.edu
Tue Oct 26 01:25:32 EDT 2004


Shilpi,

That random function has a long history; it comes from VMS FORTRAN.
http://home1.gte.net/deleyd/random/random4.html
It's a linear congruential generator; it produces roughly uniformly distributed 
pseudorandom numbers.
Note that, as with many random number generators, click random()'s lower-order 
bits are not very random at all; the lowest-order bit flips between 0 and 1 on 
every call.

Eddie


SHILPI AGARWAL wrote:
> Hi,
> 
> Whats is the distribution followed  by the random() function given in 
> include/click/glue.hh . Does it return uniformly distributed numbers ?
> 
> Thanks
> SHilpi
> 
> Shilpi Agarwal
> Research Assistant 
> Department of Computer Sciences
> University of Wisconsin-Madison
> Phone: (M) 856-313-0052
>        (O) 608-262-6629
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list