Selectrandom function – Multichannel Systems NeuroExplorer User Manual
Page 240
Advertising
5.5.8.10. SelectRandom Function
SelectRandom Function
Creates the new event containing randomly selected timestamps of the specified variable.
Syntax
variableReference SelectRandom(var, nSelect)
Parameters
Parameter
Type
Description
var
variableReference
Reference to the variable.
nSelect
double
Number of timestamps to select.
Returns
The reference to the new event containing randomly selected timestamps of the specified variable.
Comments
None
Usage
NexScript
doc = GetActiveDocument()
doc.randomEvents04 = SelectRandom(GetVarByName(doc, "Event04"), 10)
See Also
Introduction to NexScript Programming
Page 238
Advertising