tscircuit/autorouting-dataset-01
This code manages the hardware and electronic components for circuit design and PCB layout, defining components like resistors, capacitors, transistors, connectors, and footprints, and providing tools for component placement, PCB topology, and electrical connections.
- Version
- 1.0.102
- License
- unset
- Stars
- 4
lib/maths/random/randInt.ts
/**
* Generates a random integer between min (inclusive) and max (exclusive).
*/
export const randInt = (options: {
min: number
max: number
rng: () => number
}): number => {
const { min, max, rng } = options
return Math.floor(rng() * (max - min)) + min
}