Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches

◆ percent()

def Cope.misc.percent ( Union[int, float]  percentage)

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.