MCPcopy Create free account
hub / github.com/kdchang/reactjs101 / getRandomInt

Function getRandomInt

Ch10/react-redux-server-rendering/common/api/counter.js:1–3  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

1function getRandomInt(min, max) {
2 return Math.floor(Math.random() * (max - min)) + min
3}
4
5export function fetchCounter(callback) {
6 setTimeout(() => {

Callers 1

fetchCounterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected