|
From: | Ralph Silva |
Subject: | Re: [Help-gsl] information about gaussian random numbers |
Date: | Tue, 9 May 2006 22:34:14 +0000 |
seed = 123456; r = gsl_rng_alloc(gsl_rng_mt19937); gsl_rng_set(r, seed); x = gs_ran_gaussian(r,1); See http://www.gnu.org/software/gsl/manual/gsl-ref.html#Random-Number-Distributionsfor more details. On 5/9/06, address@hidden <address@hidden> wrote:
Dear sir/madam, I am using the GSL-GNU scientific library, specifically the function gsl_ran_gaussian(r,1), to generate gaussian pseudo-random numbers on a Linux platform (Ubuntu). My question is how can I use a random seed for such random numbers ? Thank you very much, Yours sincerely, Josep -- Josep Sardanyes Cayuela I.C.R.E.A. - Complex Systems Lab Dr. Aiguader, 80. 08003 Barcelona, Spain Phone: +34 935 422 834 E-mail: address@hidden Web: http://complex.upf.es/~josep/ _______________________________________________ Help-gsl mailing list address@hidden http://lists.gnu.org/mailman/listinfo/help-gsl
-- #---------------------------------------------# Ralph dos Santos Silva address@hidden http://dme.ufrj.br/~ralph Departamento de Métodos Estatísticos - DME Instituto de Matemática - IM Universidade Federal do Rio de Janeiro - UFRJ #---------------------------------------------#
[Prev in Thread] | Current Thread | [Next in Thread] |