...
Code Block |
---|
srand(time(NULL)); /* Create seed based on current time */
for (int i=0; i<10; i++)
{
 printf("%d\n", rand()); /* Generates different sequences at different runs */
}
|
...
...
Code Block |
---|
srand(time(NULL)); /* Create seed based on current time */
for (int i=0; i<10; i++)
{
 printf("%d\n", rand()); /* Generates different sequences at different runs */
}
|
...