ldou,
LD> How to get different two random numbers, and use the two
LD> numbers in program,e.g
LD> x = b + c
LD> where
LD> b && c are different random numbers between 1..n
Have a look at the Random module from the standard libraries.
> module Test wher
How to get different two random numbers, and use the two
numbers in program,e.g
x = b + c
where
b && c are different random numbers between 1..n
___
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell
-- Forwarded message --
Date: Fri, 24 Mar 2000 15:11:46 + (GMT)
From: Deryck F Brown <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Random numbers
Michael,
> stdGens1 :: [StdGen]
> stdGens1 =
> stdGens' seed
> where
> std
Michael Marte wrote:
| I need to specify an endless stream of independent
| random number generators.
|
| I wonder whether it is better to use split ... ... or
| to increment the seed in the recursive call like:
| [using `next']
I think the Random library needs some serious cleaning up
fo
Hello,
I need to specify an endless stream of independent random number
generators.
I wonder whether it is better to use split (flawed or not, doesn't
matter) like:
stdGens2 :: [StdGen]
stdGens2 =
stdGens' (mkStdGen seed)
where
stdGens' gen = gen1 : stdGens' gen2 where (gen1, gen2)
I am working with random numbers in Fuctional Programming .
Do you know where I can find something about functions which generate
random numbers according to certain probabilities (i.e. Poisson,
Normal,t-Student,etc).
Thank you.
Bye, bye!!
German Ruiz and Wanda Russo.