How to generate exponential variate without negative numbers in Python?
I tried to use this code but it generates negative number
import random int(random.expovariate(0.28) 5
I thought about using if statement, but it'll affect my randomness and my final result.
Aucun commentaire:
Enregistrer un commentaire