Category: get_rand

Generate a random number that is different 0

Generate a random number that is different

Hits: 0Define a array, there is a member, which stores 10 random numbers from 0 to 9, the code is as follows.Test it under G ++. #include <cstdlib> #include <ctime> #include <iostream> using std::cout;...