Random-float: Difference between revisions

From The K Language Wiki
Content added Content deleted
(add random float page)
 
m (Lowercase title)
Line 1: Line 1:
{{lowercase title}}
{{primitive|?a}}
{{primitive|?a}}

The '''random float''' primitive takes a single integer argument <code>a</code> and produces a list of <code>a</code> random floats from 0 up to but excluding 1.
The '''random float''' primitive takes a single integer argument <code>a</code> and produces a list of <code>a</code> random floats from 0 up to but excluding 1.



Revision as of 21:30, 8 July 2022


Random-float
?a

The random float primitive takes a single integer argument a and produces a list of a random floats from 0 up to but excluding 1.

random float does not operate on arrays, and only accepts a single value.

  ?6
0.197 0.8382 0.1811 0.9084 0.6113 0.1958