random-float

From The K Language Wiki
Revision as of 06:42, 9 July 2022 by Promovicz (talk | contribs) ("Better category ordering, add redirects to categories, fix pseudo-adverb categories")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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