Help me with random modules | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help me with random modules

yeah i cant seem to be creating unique id... is there any source to know what seed() is used?

7th Jun 2020, 4:44 AM
CutieRei
CutieRei - avatar
2 Answers
+ 5
You mentioned unique ID so maybe you should check out the uuid library. https://docs.python.org/3/library/uuid.html
7th Jun 2020, 6:33 AM
Tibor Santa
Tibor Santa - avatar
+ 2
By default it is None which means to use the current system time. https://docs.python.org/3/library/random.html
7th Jun 2020, 5:00 AM
ChaoticDawg
ChaoticDawg - avatar