Background for Skyrim SE
Member of the PO3_SKSEFunctions script
intfunctionGenerateRandomInt(intafMin, intafMax)NativeGlobal

Description

GitHub Wiki Description (PO3's PE)

  • Calculates a random integer between afMin and afMax, based on Mersenne Twister

Caveats


Parameters

intafMin

intafMax


Examples

Auto-Generated Example

int myInt__afMin
int myInt__afMax

int returnedValue = PO3_SKSEFunctions.GenerateRandomInt(myInt__afMin, myInt__afMax)

Additional References

View this function on the GitHub Wiki for powerofthree's Papyrus Extender

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.