SelectRandom
Creates the new event containing randomly selected timestamps of the specified variable.
Syntax
SelectRandom(var, nSelect)
Parameters
Parameter |
Type |
Description |
---|---|---|
var |
variableReference |
Reference to the variable. |
nSelect |
number |
Number of timestamps to select |
Return
The reference to the new event containing randomly selected timestamps of the specified variable.
Examples
Python
import nex
doc = nex.GetActiveDocument()
doc["randomEvents04"] = nex.SelectRandom(doc["Event04"], 10)
NexScript
doc = GetActiveDocument()
doc["randomEvents04"] = SelectRandom(doc["Event04"], 10)