Stupid function that takes in a probability and returns 0 or 1