This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: about change seed...


Neli writes:
 > Please, I want to change the seed in my program. I am using the
 > GSL_RNG_SEED=time;
 > where time is a integer variable.
 > But I don't known how to declare this function.
 > I need the seed change for each step, inside a for procedure.
 > If anyone have a exemplo to do it, please replying me.
 > Thank,
 > Neli

Use the function gsl_rng_set(r, seed);
Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]