I am working on a bash script that uses the $RANDOM
environmental variable as an input in a simulation. The variable does what it say, give random integers, and I as far I understand it is taken from /dev/random
.
However I would like to have a reproducible simulation, then the pseudo-random generator should be initialized with a seed; is it possible to have a seed for the $RANDOM
variable in bash?
Aucun commentaire:
Enregistrer un commentaire