Files
aladeen/maths.py
2026-03-29 19:53:07 +01:00

5 lines
166 B
Python

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