lundi 12 septembre 2022

Python - How to generate Random Natural Number with no limit on Upper Bound

I want to generate random natural number without any upper bound.

For example I can generate random natural number using random.randint(1, 1000) but I don't want to specify the upper bound. How can I achieve that?




Aucun commentaire:

Enregistrer un commentaire