Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benfry/processing4
/ choice
Method
choice
core/src/processing/data/LongList.java:679–681 ·
view source on GitHub ↗
Return a random value from the list.
()
Source
from the content-addressed store, hash-verified
677
* Return a random value from the list.
678
*/
679
public
long choice() {
680
return
data[(
int
) (Math.random() * count)];
681
}
682
683
684
// see notes in StringList
Callers
nothing calls this directly
Calls
1
random
Method · 0.45
Tested by
no test coverage detected