Thread
:
c-unix-childprocesses-random number
View Single Post
Feb 6th, 2007, 6:13 AM
#
2
programmingnoob
Hobbyist Programmer
Join Date: Feb 2006
Posts: 155
Rep Power:
3
oh btw I tried
[HTML]srand(getpid());
int choice = rand() % 2; // random integer - 0 and 1
[/HTML]
the problem will this is it will ALWAYS alternate LOL
lol i want something that will alternate sometimes, sometimes it wont ... something like that
programmingnoob
View Public Profile
Find More Posts by programmingnoob