srand(0)
38 39 118 5 23 21 45 29
#include<iostream> #include<conio.h> #include <stdlib.h> #include <time.h> using namespace std; int main(void) { int i; srand(0); for (i=0; i<8;i++) { int x = rand()%128; //between 0 and 128 cout<<x<<" "; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)