REAL more random

master
Emojigit 2021-04-08 12:47:02 +08:00
parent 2f48026b5e
commit 009eab6195
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
using namespace std;
int random_num(int lo,int hi) { // contributed by a_k_n, https://www.cplusplus.com/forum/general/107917/
srand(time(NULL));
srand(chrono::system_clock::now());
return rand()%(hi-lo) + lo;
}