Usage: if (percent(50)): <code that has a 50% chance of running> NOTE: .5 works as well as 50.
Definition at line 35 of file misc.py.