So according to numpy's documentation here: https://docs.scipy.org/doc/numpy-1.12.0/reference/generated/numpy.random.uniform.html, they say that the random values generated belong to the set [lower, upper) i.e. all values are >= lower, and less than upper. Is there any way to make this a stricter bound, i.e. all values are > lower? I have a particular case in which I want to ensure that all random values lie between 0 and k, but should not be equal to 0, as that will cause my program to crash. Any workarounds/other libraries which can help me?
Aucun commentaire:
Enregistrer un commentaire