what is the c++ Version of this python code? I want to have a special random number according to a Special number in a loop. python Version:
import random
nextRTSeed = 0;
while(True):
nextRTSeed+=1
random.seed(nextRTSeed)
print( "rand ------->> ", (random.random()) )
if(nextRTSeed>10):
break
- rand ------->> 0.13436424411240122
- rand ------->> 0.9560342718892494
- rand ------->> 0.23796462709189137
- rand ------->> 0.23604808973743452
- ...