Random

blockudoku.services.Random
trait Random

Abstracts random number generation to allow for testing.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class RandomImpl

Members list

Value members

Abstract methods

def between(min: Int, max: Int): Int

Generates a random integer between min and max.

Generates a random integer between min and max.

Value parameters

max

the maximum generated value.

min

the minimum generated value.

Attributes

Returns

the generated integer.

def nextInt(upperLimit: Int): Int

Generates a random integer between 0 and upperLimit.

Generates a random integer between 0 and upperLimit.

Value parameters

upperLimit

the maximum generated value.

Attributes

Returns

the generated integer.