jeudi 25 novembre 2021

Generating random number in python using numpy

I want to generate five random numbers within the range of 0-1, 1-2, 2-3, 4-5,5-6,6-7,7-8,8-9,9-10 (five floats) and then take the average of those five floats (so I will get ten numbers in total). I'll later plot those ten numbers as the x-value of my plot. Does anyone have any recommendation as how i can do this with numpy using its methods?




Aucun commentaire:

Enregistrer un commentaire