Skip to content

RangeInt

Namespace: SideXP.Core

public struct RangeInt

Represents a range between a minimum and a maximum integers.

Constructors

RangeInt(int)

public RangeInt(int max)

Represents a range between 0 and a given maximum.

RangeInt(int, int)

public RangeInt(int min, int max)

Represents a range between a minimum and a maximum integers.

Parameters

  • min: The minimum value of this range.
  • min: The maximum value of this range.

RangeInt(RangeInt)

public RangeInt(RangeInt other)

Parameters

  • other: The range to copy.

Properties

Min

public int Min

Inherited documentation.

Max

public int Max

Inherited documentation.

Delta

public int Delta

Returns the delta between min and max, basically the result of (max - min).

Random

public int Random

Gets a random value between min and max, both inclusive.