Difference between revisions of "SHIP:Sail:random"

From Serious Documentation
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{SailFuncTableStart|}}<onlyinclude>
 
{{SailFuncTableStart|}}<onlyinclude>
|{{SailFunc|random}}||{{DataType|Integer}}||style="text-align:center;"|v5.1.0||Return a pseudo random integer</onlyinclude>
+
|{{SailFunc|random}}||{{DataType|Integer}}||style="text-align:center;"|v5.1.0||Generate a pseudo random number</onlyinclude>
 
|}
 
|}
 
== See Also: ==
 
== See Also: ==
Line 17: Line 17:
 
! scope="col" style="text-align:left" | Description
 
! scope="col" style="text-align:left" | Description
 
|-
 
|-
|||{{DataType|Void}}||there are no input arguments
+
|||||There are no input arguments
 
|-
 
|-
 
! scope="col" style="text-align:left" | Return
 
! scope="col" style="text-align:left" | Return
Line 40: Line 40:
 
|<code>{{SailFunc|random}}();</code> || 1196198507 ||
 
|<code>{{SailFunc|random}}();</code> || 1196198507 ||
 
|}
 
|}
 +
 +
[[Category: Numeric Functions]]

Latest revision as of 12:38, 10 November 2016

Function Returns Introduced Description
random Integer v5.1.0 Generate a pseudo random number

See Also:

Prototype

Integer random();

Parameters/Return Value

Parameter Data Type Description
There are no input arguments
Return Integer a pseudo random number

Detailed Description

The random() function returns a pseudo random integer.

Examples

Example Result Notes
random(); 2127556740
random(); 1535581870
random(); 1196198507