How may I generate a random number using C language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How may I generate a random number using C language?

Without using the rand() function

7th Oct 2020, 6:10 AM
Bittu Kumar
Bittu Kumar - avatar
1 Answer
0
Computers are really bad in generating random things. You have to create algorithm based on something that is never the same, for example time.
7th Oct 2020, 6:31 AM
Kry$tof