[C] How to generate random numbers ~

xiaoxiao2021-03-06  23

#include

#include

#include

Int main (void)

{

/ / Bind the random number and time ~ So each time the number is different ~

SRAND (NULL);

For (int i = 0; i <50; i)

Printf ("% d / n", rand ());

Return 0;

}

转载请注明原文地址:https://www.9cbs.com/read-69451.html

New Post(0)