Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for( int uGens = 0; uGens < 3; ++uGens){
- Randoms[uGens] = Math.round(Math.random() * 10);
- while( Randoms[1] == Randoms[0]){
- Randoms[1] = Math.round(Math.random() * 10);
- }
- while( Randoms[2] == Randoms[1] || Randoms[2] == Randoms[0]){
- Randoms[2] = Math.round(Math.random() * 10);
- }
- while( Randoms[3] == Randoms[2] || Randoms[3] == Randoms[1] || Randoms[3] == Randoms[0]){
- Randoms[3] = Math.round(Math.random() * 10);
- }
- }
Add Comment
Please, Sign In to add comment