I’m trying to prepare a few shuffled files with Linux shuf command, however, through shuf –help, it doesn’t provide any “seed” option. I wonder if there is any workaround? Thanks! Updates: thanks to the remind in the comments, I realize (1) shuf FILE produce different result each time; and (2) when –random-source are same, the produced results are same, so
Tag: random-seed
Is there any random generator library except rand(), which developer can manually set the seed?
I want to verify that if the seed is same, the resulting pseudo random number is same. Using rand() is the simplest but I’m looking for safer way. I found that using device entropy with /dev/random of linux is very reliable but cannot find how to set exact same seed. I also tried cryptgenrandom of window but cannot find the