vendredi 19 mai 2023

Why ran2() from numerical recipes in c gives numbers in same sequence? [closed]

I am using ran2() function in c programming codes.ran2() is known as more truly random number generator.I found that ran2() is also generates numbers in same sequence.why is it so ?

How to feed time as seed in ran2()?

Ran2 takes a long type pointer variable.

The code of ran2() is available in Numerical recipes.




Aucun commentaire:

Enregistrer un commentaire