Horje
how to genrate a random number in C Code Example
how to genrate a random number in C
#include <time.h>
#include <stdlib.h>

srand(time(NULL));   // Initialization, should only be called once.
int r = rand();      // Returns a pseudo-random integer between 0 and RAND_MAX.




16

Related
boolean in c Code Example boolean in c Code Example
write a program to find reverse of given number Code Example write a program to find reverse of given number Code Example
load and display figure in python Code Example load and display figure in python Code Example
take array as input in c Code Example take array as input in c Code Example
install *.deb file in ubuntu Code Example install *.deb file in ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9