mercredi 20 mars 2019

List of 10 random points between -2 and 2 with uniform distribution

How do I make a list of 10 random points between -2 and 2 with a uniform distribution? Python keeps telling me that the range is negative or too small

This is what I have so far:

import random
randint = random.uniform((1, 10),10)
print (randint)




Aucun commentaire:

Enregistrer un commentaire