MCPcopy 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
358const 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

randomUtxoFunction · 0.85
randomTokenFunction · 0.85
randomNFTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected