How to create pure random function giving random no every time for every no without repeating frequently? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How to create pure random function giving random no every time for every no without repeating frequently?

13th Jan 2017, 4:00 PM
FARZA
FARZA - avatar
2 Answers
+ 6
well, you can use a seed for a random number. most people use time library, and use miliseconds , so it will be random based on the exact time you will try it (but its almost impossible to match the exact miliseconds, so its kinda ok)
13th Jan 2017, 4:25 PM
Nahuel
Nahuel - avatar
+ 4
thanks😃
13th Jan 2017, 4:32 PM
FARZA
FARZA - avatar