MathHelperGetChance Method (Int32, Int32)

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

Gets a chance.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

public static bool GetChance(
	int odds,
	int seed
)

Parameters

odds
Type: SystemInt32
The odds.
seed
Type: SystemInt32
The seed.

Return Value

Type: Boolean
Returns true one out of odds times.
See Also

Reference