Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ randomSelection
Method
randomSelection
enums/SecurityCategory.java:23–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
}
22
}
23
public
Security randomSelection() {
24
return
Enums.random(values);
25
}
26
public
static
void
main(String[] args) {
27
for
(
int
i = 0; i < 10; i++) {
28
SecurityCategory category =
Callers
1
main
Method · 0.95
Calls
1
random
Method · 0.95
Tested by
no test coverage detected