Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package ch.bbbaden.rio;
  7.  
  8. import java.util.*;
  9.  
  10. /**
  11.  *
  12.  * @author Manuel Saugy
  13.  */
  14. public class RealerWuerfel implements Wuerfel {
  15.    
  16.     final static private int MAX_NUMBER = 6;
  17.     Random random = new Random();
  18.    
  19.    
  20.     public int wuerfle() {
  21.        
  22.         int gewürfelt = random.nextInt(MAX_NUMBER) + 1;
  23.              
  24.         return gewürfelt;
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement