I used
#include<stdlib>
#include<time>
using namespace std;
srand((unsigned)time(0));
int n=(rand()>>8)%4;
but what other random functions are there or what other function can be used as random number generators?
EDIT: I have no particular reason to ask this question, I just wanted to know if C ++ has any other random functions.
user98188
source
share