Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 25, 2020 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/f8027c26670585bcb7cfe2738ebdd5db to your computer and use it in GitHub Desktop.
Save amankharwal/f8027c26670585bcb7cfe2738ebdd5db to your computer and use it in GitHub Desktop.
#include<iostream>
#include<cstdlib>
using namespace std;
int main(){
unsigned int seed;
int z1, z2, z3;
cout<<" Random Numbers"<<endl;
cin>>seed;
srand(seed);
z1 = rand();
z2 = rand();
z3 = rand();
cout<<"Three random numbers :"<<z1<<" "<<z2<<" "<<z3<<endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment