d8 static method

int d8()

Roll a eight-sided dice. Returns an integer in 1-8 (inclusive).

Implementation

static int d8() => random.nextInt(8) + 1;