5 lines
166 B
Python
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)
|