-
-
Save amankharwal/f8027c26670585bcb7cfe2738ebdd5db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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