recently i started learning C , ive been working in some simple projects calculator,calendar,tempreture converter,rock paper scissors... Now im trying to build my own password generator,this program is based on random picking (numbers,letters,symbols...) to make a strong password. so i looked for a function that picks randomly , and i found rand() and srand() with time(0)
i was dissapointed after i learnd how these functions work that it wasnt as good as random.randint() in python , and that the function would return the same value over and over if you execute in the same second (as u can see from the exemple IMAGE) is there any other function or algorithme i could use to solve this problem ?enter image description here
Aucun commentaire:
Enregistrer un commentaire