Math.sqrt / rand
Square root and random number.
Syntax
Math.sqrt(x) · rand(n)
Description
Math.sqrt returns the square root. rand(n) generates a random number between 0..n-1, rand(1..6) within a range.
Example
Loading editor…
Expected output
12.0 true
When to use?
Geometry, dice, random selection.