The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 2 of 2
Search took
0.01
seconds.
Search:
Posts Made By:
manisum
Forum:
Programming
02-10-2012
5
Generating Random Number in Child Process using Fork
13,226
Posted By
Corona688
Yes, you have to do it in the child process. If...
Yes, you have to do it in the child process. If you do it in the parent, you get 20 identical copies of the parent, and 20 identical copies of the parent's seed, and 20 identical random numbers. I...
Forum:
Programming
02-10-2012
5
Generating Random Number in Child Process using Fork
13,226
Posted By
Corona688
If you put the same seed in, you get the same...
If you put the same seed in, you get the same numbers out.
time() only changes once a second. How long does your program take to run? Less than a second?
That's why I suggested putting the...
Showing results 1 to 2 of 2
Member Badges and Information Modal
×