function | since v1.11.50 | Edit |
(random)
Returns a positive double between 0.0 and 1.0, chosen pseudorandomly with approximately random distribution. Not cryptographically secure. The seed is chosen internally and cannot be selected. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
(defn ^number random
{:added "1.11.10"}
[] (Math/random))