IntRange.Random

Method in IntRange

Declaration

public int Random()

Description

Returns a random value in the range [inclusive, exclusive).

Returns

intA random value in the range [inclusive, exclusive).

Overload

Declaration

public int Random(Random seed)

Description

Returns a random value in the range [inclusive, exclusive) using the provided seed.

Parameters

seed

Returns

intA random value in the range [inclusive, exclusive).