Answers for "srand time null"

C
1

srand time null

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

int main( void){
    srand(time(NULL));
    int x = rand()%100;
}
Posted by: Guest on May-02-2021

Code answers related to "C"

Browse Popular Code Answers by Language