📅  最后修改于: 2022-03-11 14:55:13.007000             🧑  作者: Mango
#include
#include
srand(time(NULL)); // Initialization, should only be called once.
int r = rand(); // Returns a pseudo-random integer between 0 and RAND_MAX.