Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/CashScript/cashscript
/ randomInt
Function
randomInt
packages/cashscript/src/utils.ts:358–358 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
356
}
357
358
const
randomInt = (): bigint => BigInt(Math.floor(Math.random() * 10000));
359
360
/**
361
* Generate a random `Utxo`
for
use with `MockNetworkProvider.addUtxo` in tests and examples.
Callers
3
randomUtxo
Function · 0.85
randomToken
Function · 0.85
randomNFT
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected