[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Random number generator(RNG) question

From: Gabor Csardi
Subject: Re: [igraph] Random number generator(RNG) question
Date: Tue, 4 Dec 2007 21:54:24 +0100
User-agent: Mutt/1.5.13 (2006-08-11)


if you use igraph from C or Python then the standard C library rand()
is used with a seed based on the current time as returned by time(). 
(I agree that this might be a poor solution.)

If you use GNU R with the igraph package then R's random rumber 
gerenerator is used. See ?RNGkind in R. (This is another reason
to use igraph from R instead of programming in C.)

Having a more flexible RNG interface has been on the TODO list
for a while....


On Tue, Dec 04, 2007 at 03:45:53PM -0500, Richard Geddes wrote:
> Hello,
> I'm interested in using the random network generating functions in the
> igraph library.  I assume a RNG is used in these functions.  My studies
> tell me that not all RNG's are the same.. some more random than others. 
> I was wondering if someone could either give a summary of the igraph RNG
> or point me to some info that describes the methodologies used in the
> igraph RNG. 
> Also can the igraph RNG generate 64-bit random numbers for 64-bit
> environments?
> Thank you
> Richard
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help

Csardi Gabor <address@hidden>    MTA RMKI, ELTE TTK

reply via email to

[Prev in Thread] Current Thread [Next in Thread]