Guest User

Untitled

a guest
Apr 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. for( int uGens = 0; uGens < 3; ++uGens){
  2.         Randoms[uGens] = Math.round(Math.random() * 10);
  3.         while( Randoms[1] == Randoms[0]){
  4.         Randoms[1] = Math.round(Math.random() * 10);
  5.         }
  6.         while( Randoms[2] == Randoms[1] || Randoms[2] == Randoms[0]){
  7.         Randoms[2] = Math.round(Math.random() * 10);
  8.         }
  9.         while( Randoms[3] == Randoms[2] || Randoms[3] == Randoms[1] || Randoms[3] == Randoms[0]){
  10.         Randoms[3] = Math.round(Math.random() * 10);
  11.         }
  12. }
Add Comment
Please, Sign In to add comment