MCPcopy Create free account
hub / github.com/defold/defold / randomElement

Method randomElement

editor/src/java/com/defold/editor/Splash.java:73–75  ·  view source on GitHub ↗
(List<String> tips)

Source from the content-addressed store, hash-verified

71 }
72
73 private static String randomElement(List<String> tips) {
74 return tips.get(randomInt(tips.size()));
75 }
76
77 private static void randomGame(Scene scene) {
78 List<String[]> games = new ArrayList<>();

Callers 1

showMethod · 0.95

Calls 3

randomIntMethod · 0.95
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected