FivePD API
Interfaces

IRandomService

Provides methods for generating random numbers. It's recommended to use this service instead of Random directly.

Methods

Next

Gets a random number between the minimum and maximum values. Internally uses Random.Next.

Parameters

NameTypeDescription
minValueintThe minimum number.
maxValueintThe maximum number.

Returns

NameType
intA number between the specified numbers.

Properties

Random

Gets a random number generator.

Type: Random

GetRandomChance

Gets a random number between 0 and 100. Both inclusive.

Type: int