- Found in:
- PapyrusUtil
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)