Advertisement
Guest User

Untitled

a guest
May 26th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public class Random
  2. {
  3.  
  4. public static void main(String[] args)
  5. {
  6.  
  7. Random würfel = new Random();
  8. // int augenZahl;
  9.  
  10. for (int i = 0; i < 4; i++)
  11. {
  12.  
  13. int augenZahl = (int) Math.random()*6;
  14. System.out.print(augenZahl + " ");
  15. }
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement