dimanche 7 janvier 2018

Time seeded random integer

When seeding the random object in Python, the result is a decimal number like "0.1235", but for me this doesn't make any sense considering that Python is a high level language. When doing the same simple thing in other language such as C# or Java, the random function has features such as next integer or next double, but as I see Python lacks this. What's the proper way to get a time seeded random integer? By proper I mean a standard solution and not something like converting the result to string, manipulating it, etc.




Aucun commentaire:

Enregistrer un commentaire