MCPcopy Index your code
hub / github.com/TeaCoder52/patcode / fakeRngGenerator

Function fakeRngGenerator

test/random.test.ts:4–7  ·  view source on GitHub ↗
(values: number[])

Source from the content-addressed store, hash-verified

2import { generateCode, Strategy } from '../src/index'
3
4function fakeRngGenerator(values: number[]) {
5 let i = 0
6 return () => values[i++ % values.length]
7}
8
9describe('deterministic RNG', () => {
10 it('produces deterministic output', () => {

Callers 1

random.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected