rand(times, value)
Randomly fills the quadrille with the specified value a given number of times.
Example
(numeric keys define times; other keys define value)
Note
For deterministic (repeatable) randomness, explicitly call randomSeed(seed) before
rand(times, value).
Syntax
rand(times, value)
Parameters
| Param | Description |
|---|---|
times |
Number: number of cells to fill randomly |
value1 |
Any: A valid JavaScript value |
What this page's examples use
- p5.quadrille
drawQuadrillecreateQuadrillecellLengthrandwidthheightorder- p5.js
createCanvasbackgroundcolorkeypositionrandomheightstylecreatePhtml
Names the analysis can prove are called, and the line each one is documented on. Local variables and members of an unknown receiver are left out.