otp.math.rand#
- rand(min_value, max_value, seed=None)#
Returns a pseudo-random value in the range between
min_value
andmax_value
. Ifseed
is not specified, the function produces different values each time a query is invoked. Ifseed
is specified, for this seed the function produces the same sequence of values each time a query is invoked.- Parameters
- Return type
Examples
>>> data = otp.Tick(A=1) >>> data['RAND'] = otp.math.rand(1, 1000)