Wap to generate your own random function in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Wap to generate your own random function in c++

and how can I find it's frequency

24th Aug 2017, 12:39 PM
Anushka Chauhan
Anushka Chauhan - avatar
2 Answers
+ 1
I'm not sure if this is what you are asking, but this code will at least show how to get random numbers. It's not my own random function; it is a part of the cstdlib https://code.sololearn.com/cmdGUpJ8CxmC/?ref=app
24th Aug 2017, 3:33 PM
Zeke Williams
Zeke Williams - avatar
0
thanks @zekewilliams , but I'm asking about how to generate the code or algo for random function without using rand() .
27th Aug 2017, 6:07 AM
Anushka Chauhan
Anushka Chauhan - avatar