[text] Im trying to generate a random int that is either 0 or 1in C. Right now receive a 0 every time run this code and Im not sure why. Whats the problem here 24 include ctime include cstdlib srandtine0 int randomval rand 2 cout randomval endl e random ctime. share improve this question follow edited Dec7 11 at2123 asked Dec 711 at2119. Lightness Races in Orbit Rich Byden 344K o563 558 0027 ez o5 013 8 Answers Active Oldest Votes Itis called bad luck. Try it again. 154 share improveths answer follow answered Dec 71 at2122 v Michael Krelin hacker P 107k 16 175 o 154