MCPcopy Create free account
hub / github.com/benfry/processing4 / random

Method random

core/src/processing/data/FloatList.java:705–710  ·  view source on GitHub ↗

Return a random value from the list.

()

Source from the content-addressed store, hash-verified

703 * Return a random value from the list.
704 */
705 public float random() {
706 if (count == 0) {
707 throw new ArrayIndexOutOfBoundsException("No entries in this FloatList");
708 }
709 return data[(int) (Math.random() * count)];
710 }
711
712
713// /**

Callers 11

shuffleMethod · 0.45
choiceMethod · 0.45
removeChoiceMethod · 0.45
shuffleMethod · 0.45
choiceMethod · 0.45
removeChoiceMethod · 0.45
shuffleMethod · 0.45
choiceMethod · 0.45
removeChoiceMethod · 0.45
shuffleMethod · 0.45
removeChoiceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected