Just keep generating random numbers until you get one you like.
Very useful for cheating at cards and dice!