import random # Random number generator that's biased towards 0 def biased_random(max_value, strength=3): return round((random.random() ** strength) * max_value)