+ 1

How to use rand() function without comming same value in c++

we also use srand(time(0)) that time we use the for loop inside rand() function some time get same out put

25th Feb 2018, 4:25 PM
Vibeeshanan Vibee
Vibeeshanan Vibee - avatar
3 ответов
25th Feb 2018, 4:57 PM
JaatPTM("Paritosh Malik");
JaatPTM("Paritosh Malik"); - avatar
+ 2
it is an implementation of Power Distribution Law it gives fairly different value everytime.
25th Feb 2018, 5:01 PM
JaatPTM("Paritosh Malik");
JaatPTM("Paritosh Malik"); - avatar
- 1
sorry friend i don't mention what is the program i want
25th Feb 2018, 4:59 PM
Vibeeshanan Vibee
Vibeeshanan Vibee - avatar