MCPcopy Create free account
hub / github.com/NianBroken/Firework_Simulator / randomWord

Function randomWord

js/script.js:572–576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

570
571// 随机获取一段文字
572function randomWord() {
573 if (randomWords.length === 0) return "";
574 if (randomWords.length === 1) return randomWords[0];
575 return randomWords[(Math.random() * randomWords.length) | 0];
576}
577
578function whiteOrGold() {
579 return Math.random() < 0.5 ? COLOR.Gold : COLOR.White;

Callers 1

burstMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected