d10 static method

int d10()

Roll a ten-sided dice. Returns an integer in 1-10 (inclusive).

Implementation

static int d10() => random.nextInt(10) + 1;