^m
路漫漫

死到临头发现还不会对拍

C++随机数生成:↓

 1 #include<bits/stdc++.h>
 2  
 3 using namespace std;
 4 
 5 int main() {
 6     srand((unsigned)time(NULL));
 7     cout << rand() << " ";  // <=32767
 8     cout << (rand() << 15 | rand()) << " ";
 9     return 0;
10 }
View Code

 

posted on 2018-04-05 17:28  ^m  阅读(115)  评论(0编辑  收藏  举报