• Please review our updated Terms and Rules here

Hardware giveaway games

You all are extremely close to the right answer in relation to the size of the universe.
 
01100001 01101100 01101101 01101111 01110011 01110100 00100000 01110100 01101000 01100101 01110010 01100101
 
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main()
{
srand((unsigned)time(0));
int random_integer;
int lowest=1, highest=50;
int range=(highest-lowest)+1;
for(int index=0; index<20; index++){
random_integer = lowest+int(range*rand()/(RAND_MAX + 1.0));
cout << random_integer << endl;
}
}
 
Back
Top