#include <time.h> #include <stdlib.h> ... srand(time(NULL)); int r = rand() % 74;. (假設您的意思是包括0但不包括74,這是您的Java示例所做的).
確定! 回上一頁