Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
function
getRandomInt(min, max) {
2
return
Math.floor(Math.random() * (max - min)) + min
3
}
4
5
export
function
fetchCounter(callback) {
6
setTimeout(() => {
Callers
1
fetchCounter
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected