Advertisement
HarrJ

B8 Day 14 random numbers

Sep 26th, 2022
879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. package mattroseb8wk3;
  2.  
  3. public class Day14D {
  4.     public static void main(String[] args) {
  5.         long rolledNum;
  6.         for (int i = 0; i < 6; i++) {
  7.             rolledNum = Math.round(Math.random() * 45);
  8.             System.out.println("roll "+i+": " + rolledNum);
  9.         }
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement