i've been calculating probability for a program of mine
i've been using srand, rand()%2 for say a 50-50
i'd use a if to see if it was between 0 and 1 for one outcome and greater than 1 for the other. It works, but, is there a more accurate or better way to do this?