mercredi 19 mai 2021

Generate 1000's of Random integers without any upper and lower bounds

I want to create 1000's of random integer without any lower or upper bound. I am aware of function

randint() 

but it takes upper and lower bound and generate any random number between those limits . But I want any random number without those bounds. I even tried

random.random()

but the problem with this is, it gives floating value. Can anyone help me with a better solution or else how to remove that decimal points from 1000 random floating values generate by random.random()

Thanks in Advance!




Aucun commentaire:

Enregistrer un commentaire