Java:使用new Random(System.currentTimeMillis()).nextInt(n);
C++:使用srand((unsigned int ) time (NULL)) 和 rand()%n
求大佬解答
没研究这么深过,留个mark