lundi 6 août 2018

Creating random list of number in python within certain range

I want to create 10,000 random numbers withing the range of 1 to 100.

How can I do with python?

I can use for loop and with each for loop I can use random.sample or random.random() function.

Is there any other way, without using any for loop I can generate it with in-build function.

Thanks,




Aucun commentaire:

Enregistrer un commentaire