lundi 9 août 2021

How to randomly generate random numbers in one of two intervals in Python

I want to generate random numbers from two different ranges [0, 0.3) and [0.7, 1) in python.

numpy.random.uniform has the option of generating only from one particular interval.




Aucun commentaire:

Enregistrer un commentaire