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

Method removeChoice

core/src/processing/data/StringList.java:607–613  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605
606
607 public String removeChoice() {
608 if (count == 0) {
609 throw new ArrayIndexOutOfBoundsException("No entries in this StringList");
610 }
611 int index = (int) (Math.random() * count);
612 return remove(index);
613 }
614
615
616 /**

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
randomMethod · 0.45

Tested by

no test coverage detected