Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
remove
Method · 0.95
random
Method · 0.45
Tested by
no test coverage detected