0
Can anyone tell me the function of random? And diff btw ramdom() and randomize()?
3 Respuestas
+ 6
Both random() and randomize() are Borland-style functions. They may still be available on some modern compilers, they are not part of the standard.
Their counterparts would be rand() and srand() respectively. The former generates a pseudo-random number while the latter is responsible for seeding the random number generating algorithm.
+ 6
Can you post a sample code? AFAIK you will only be able to identify a possible range of output.
0
but how to identify the correct output when both of them are used in a program