Re: Seed and rand

2014-02-10 Thread Henrik Sarvell
That came out a bit confused, it's actually two questions, the call to od -vAn -N8 -tu8 /dev/urandom should eliminate the trap of not generating a random seed? And then I hope rand generates a sequence with a very big period. Put together I should have truly random situation in the sense that I

Re: Seed and rand

2014-02-10 Thread Alexander Burger
Hi Henrik, od -vAn -N8 -tu8 /dev/urandom should eliminate the trap of not generating a random seed? You don't need to call 'od' for that. Simply do : (in /dev/urandom (rd 20)) - 384093524694620556071320789767590963480707536932 In praxis, (rd 8) or (rd 12) should be enough, I think:

Re: Seed and rand

2014-02-10 Thread Henrik Sarvell
Thanks Alex for the clarification, 2**64 should be enough :-) On Mon, Feb 10, 2014 at 7:11 PM, Alexander Burger a...@software-lab.dewrote: Hi Henrik, od -vAn -N8 -tu8 /dev/urandom should eliminate the trap of not generating a random seed? You don't need to call 'od' for that. Simply do