Guest User

Untitled

a guest
Mar 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. package roleta;
  2.  
  3. import java.util.Random;
  4.  
  5.  
  6.  
  7. /**
  8. *
  9. * @author Thiago
  10. */
  11. public class JogoNumerico {
  12. int resultado;
  13. int resultado2;
  14. int resultado3;
  15.  
  16.  
  17. public void Roleta(){
  18. Random random = new Random();
  19. this.resultado = (random.nextInt(100)+1);
  20.  
  21. }
  22. public void Roleta2(){
  23. Random random2 = new Random();
  24. this.resultado2 = (random2.nextInt(50)+1);
  25.  
  26. }
  27. public void Roleta3(){
  28. Random random3 = new Random();
  29. this.resultado3 = (random3.nextInt(25)+1);
  30.  
  31.  
  32. }
  33.  
  34.  
  35.  
  36. }
Add Comment
Please, Sign In to add comment