Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Useful-Scripts-Extension/useful-script
/ ranInt
Function
ranInt
scripts/fb_autoRemoveSpamPostGroup_main.js:155–157 ·
view source on GitHub ↗
(min, max)
Source
from the content-addressed store, hash-verified
153
main();
154
155
function
ranInt(min, max) {
156
return
Math.floor(Math.random() * (max - min) + min);
157
}
158
159
function
sleep(time, cancelFn) {
160
return
new
Promise((resolve) => {
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected