![Embedded Systems LM5p-GSM Product Manual Download Page 113](http://html1.mh-extra.com/html/embedded-systems/lm5p-gsm/lm5p-gsm_product-manual_2399466113.webp)
113
math.random ([m [, n]])
This function is an interface to the simple pseudo-random generator function rand provided by
ANSI C. (No guarantees can be given for its statistical properties.)
When called without arguments, returns a uniform pseudo-random real number in the range
[0,1). When called with an integer number m, math. random returns a uniform pseudo-random
integer in the range [1,m]. When called with two integer numbers m and n, math. random
returns a uniform pseudo-random integer in the range [m, n].
math.randomseed (x)
Sets x as the "seed" for the pseudo-random generator: equal seeds produce equal sequences of
numbers.
math.sin (x)
Returns the sine of x (assumed to be in radians).
math.sinh (x)
Returns the hyperbolic sine of x.
math.sqrt (x)
Returns the square root of x. (You can also use the expression x^0.5 to compute this value.)
math.tan (x)
Returns the tangent of x (assumed to be in radians).
math.tanh (x)
Returns the hyperbolic tangent of x.
6.2.27.
Table manipulations
This library provides generic functions for table manipulation. It provides all its functions inside
the table. Most functions in the table library assume that the table represents an array or a list.
For these functions, when we talk about the "length" of a table we mean the result of the
length operator.
table.concat (table [, sep [, i [, j]]])
Given an array where all elements are strings or numbers, returns
table*i+..sep..table*i+1+ ···
sep..table[j]
. The default value for sep is the empty string, the default for
i
is 1, and the default
for
j
is the length of the table. If
i
is greater than
j
, returns the empty string.
table.insert (table, [pos,] value)
Inserts element value at position pos in table, shifting up other elements to open space, if
necessary. The default value for
pos
is
n+1
, where n is the length of the table, so that a
call
table.insert(t,x)
inserts x at the end of table t.
table.maxn (table)
Summary of Contents for LM5p-GSM
Page 10: ...10 1 Terminal connection schemes Model ...
Page 12: ...12 canX connection Powering over 24V terminals ...
Page 15: ...15 Digital output e g relay contactor ...
Page 16: ...16 Digital or Analog input e g pushbutton or 0 5V current measurement sensor ...
Page 17: ...17 Digital input e g pushbutton ...
Page 18: ...18 1 wire connection ...
Page 19: ...19 2 Standards supported ...
Page 22: ...22 3 Insert SIM card and close the holder Close the front cover ...
Page 36: ...36 ...
Page 48: ...48 ...
Page 120: ...120 Show logs window show logs in separate window Edit custom JavaScript ...
Page 156: ...156 Additional classes additional CSS classes for the element ...
Page 201: ...201 ...
Page 221: ...221 Clear binary object value at priority 12 bacnet write 127001 binary value 2305 nil 12 ...
Page 246: ...246 value event getvalue res value 100 255 grp write 1 1 6 res dt uint8 ...
Page 277: ...277 ...
Page 282: ...282 Press this button to upload new settings to all modified all devices ...