Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package roleta;
- import java.util.Random;
- /**
- *
- * @author Thiago
- */
- public class JogoNumerico {
- int resultado;
- int resultado2;
- int resultado3;
- public void Roleta(){
- Random random = new Random();
- this.resultado = (random.nextInt(100)+1);
- }
- public void Roleta2(){
- Random random2 = new Random();
- this.resultado2 = (random2.nextInt(50)+1);
- }
- public void Roleta3(){
- Random random3 = new Random();
- this.resultado3 = (random3.nextInt(25)+1);
- }
- }
Add Comment
Please, Sign In to add comment