srand() C
snippet in c

srand() C

user6681

#include <stdlib.h>
#include <time.h>

srand(time(NULL));