Perl Programming/Keywords/rand

From testwiki
Revision as of 07:34, 16 April 2020 by imported>DannyS712 (Update syntaxhighlight tags - remove use of deprecated <source> tags)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Prognav

The rand keyword

rand is a function that returns a random fractional number greater than or equal to 0 and less than the value of EXPRESSION. Without EXPRESSION, the value 1 is used so that the interval of the random number is [0,1).

Syntax

  rand EXPRESSION
  rand

Examples

Template:Code:Valid

See also

Template:Prognav

Template:BookCat