about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/1/RollLoadedDie.java
blob: 161fd93e05793d73be68084134feb2019af31861 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import java.util.concurrent.ThreadLocalRandom;

class RollLoadedDie
{
  public static void main(String... args)
  {
    int x = ThreadLocalRandom.current().nextInt(1, 9);
    System.out.println((x < 6) ? x : 6);
  }
}