×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: ActionScript
Posted by: jd saeg
Added: May 28, 2016 1:49 AM
Views: 9
Tags: dice
  1.     public static void main(String[] args) {
  2.         int diceOne = (int) (Math.random() * 6 + 1);
  3.         int diceTwo = (int) (Math.random() * 6 + 1);
  4.         System.out.println(diceOne);
  5.         System.out.println(diceTwo);