Added chance function

Added a convenient method for 1 in x randomness.