MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / getRandomDigit

Function getRandomDigit

data-generator/game.js:52–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 * GAME_STATE.max_card_value]
51 */
52export function getRandomDigit() {
53 return Math.floor(
54 GAME_STATE.min_card_value + Math.random() * GAME_STATE.max_card_value);
55}
56
57/**
58 * Yields a randomly generated array of three elements. Each element

Callers 1

randomHandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected