Update and rename rand() to C++产生随机数