Background for Skyrim SE
Member of the StorageUtil script
intfunctionIntListRandom(FormObjKey, stringKeyName)NativeGlobal

Description

Documentation Comment

Outputs a randomly selected value from the given list's elements using mt19937.

Returns the random elements value. If list is empty or doesn't exist, returns default null value.

ObjKey: form to find value on. Set none to find global list value.
KeyName: name of list.


Caveats


Parameters

FormObjKey

stringKeyName


Examples

Auto-Generated Example

Form myForm__ObjKey
string myString__KeyName

int returnedValue = StorageUtil.IntListRandom(myForm__ObjKey, myString__KeyName)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.