天软金融分析.NET函数大全
>
TSL函数
>
基础函数
>
数组
>
数组取值
Randomchoice
复制链接
简述
随机抽样
返回一个随机的数组元素,
这个数组是由参数Avalue传递进来的。
定义
Randomchoice(Avalues:Array of string;Size:Integer;Replace:Bool):Any
参数
名称
类型
说明
Avalues
Array of string
Array of string,一维字符串数组,或正整数
Size
Integer
Integer,
Replace
Bool
Bool,是否可放回,默认为真可放回
返回
Any
数组中的随机元素值
相关
ColumnValue
GetSubTableByField
FilterTableEx
GetBottomN
GetMiddleN
GetTopN
FilterOneDimEx
GetDistinctValue
ColumnValue2
FilterTable
GetSubField
GetSubTable
Arraygetdefault
Arraysetdefault
Arraysetdefault2
Randomchoice