Finding the random seed

Finding the random seed

Post by Pauld » Thu, 20 Apr 2000 04:00:00

I need to find out what seed the random() function is currently at.  Is
there any way of doing this?

Background to problem:
I need to take over the random number and seed it to specific values so
I can get the same random numbers later on if required.  When this part
of the program is finished I'd like it to put the random number
generator back to how it found it...
Paul Richards (Pauldoo) -


1. What is a good random seed?

Is there a way to have a more random way to seed RANDOM?

Now I do RANDOM=(multiply part of the CPU number * part of time * Process
Id) % 32767

A better way would be to make a number by testing CPU usage and generate a 1
when it increases and a 0 when it doesn't.  But this is prettty involved for
the ksh and it only works for busy systems.

This has to run only once on different systems.

2. InstallShield for SOlaris!, will it also be on Linux?

3. Seeds for random nos.

4. AMD k5 and K6

5. different seed for random number generator?

6. SCSI bus rescan problem with CDR

7. what's the accepted method to get a random seed?

8. Sending a file descriptor over a socket pair...

9. SUMMARY: get the time of the day to seed my random generator

10. Random number seed

11. Random Number generator not Random *****

12. Trying to generate random random numbers!

13. Help, cgi-bin script "random" will only return last url in random list.