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

Method removeChoice

core/src/processing/data/LongList.java:694–700  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

692
693
694 public long removeChoice() {
695 if (count == 0) {
696 throw new ArrayIndexOutOfBoundsException("No entries in this IntList");
697 }
698 int index = (int) (Math.random() * count);
699 return remove(index);
700 }
701
702
703 public LongList copy() {

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
randomMethod · 0.45

Tested by

no test coverage detected