Rand | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок


what is the benefit of random numbers in programming

22nd May 2018, 6:10 AM
Jamaluddin Huseinkhail
Jamaluddin Huseinkhail - avatar
3 ответов
+ 3
Imagine you have to create a password generator.Without rand,your password options will be limited.with rand you can create random passwords,infinite. hope that helps
22nd May 2018, 6:19 AM
᠌᠌Brains[Abidemi] - avatar
+ 1
use of random numbers is very beneficial when it comes to security because to predict an random number need some time it's most useful in the field of cryptography random numbers are generated by random number generator which works on different random number algorithm
22nd May 2018, 6:22 AM
MsJ - avatar
+ 1
rand() was replaced by <random> in C++11. You'll see it when you need it, and otherwise, don't bother.
22nd May 2018, 1:52 PM
Timon Paßlick