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

Method removeChoice

core/src/processing/data/IntList.java:701–707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

699
700
701 public int removeChoice() {
702 if (count == 0) {
703 throw new ArrayIndexOutOfBoundsException("No entries in this IntList");
704 }
705 int index = (int) (Math.random() * count);
706 return remove(index);
707 }
708
709
710 public IntList copy() {

Callers 1

wordsFolderExhaustMethod · 0.45

Calls 2

removeMethod · 0.95
randomMethod · 0.45

Tested by

no test coverage detected