Hello guys.
Please advice how to get a random number from the function. I have to "throw a coin" one hundred times and count heads and tails amount. I did it like this:
It doesn't matter if i use randomize() or srand(time(0)). The result is the same. It gives me either zeros or ones only while i need both. What am i doing incorrectly?