Random Number Generator
Random Number Generator
Random Number Generator
#include <iostream> #include <ctime> //to generate different random number every time you run a program using namespace std; int k=1000; void random() { int r; srand(time(0)); r = rand()%k; cout<<r<<endl; k++; } int main() { for(int i=0;i<10;i++) { random(); } }
//for
random number