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

Method removeChoice

core/src/processing/data/FloatList.java:725–731  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

723
724
725 public float removeChoice() {
726 if (count == 0) {
727 throw new ArrayIndexOutOfBoundsException("No entries in this IntList");
728 }
729 int index = (int) (Math.random() * count);
730 return remove(index);
731 }
732
733
734 public FloatList copy() {

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
randomMethod · 0.45

Tested by

no test coverage detected