Skip to main content

simulateHandOutcomeBatch

simulateHandOutcomeBatch(specs: SimBatchSpec[], out?: Float64Array): Float64Array

Import

const poker = require('poker-calculations');

ESM (Node):

import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const poker = require('poker-calculations');

When to use

Range builders and dashboards that need many MC equities in one native call—amortizes N-API and card-parse overhead vs looping simulateHandOutcome.

How to use

const poker = require('poker-calculations');

const specs = [{ holeCards: ['Ah','Kh'], board: ['Qh','Jh','2c'], numSimulations: 5000, seed: 42, villains: 1 }];
const out = poker.simulateHandOutcomeBatch(specs);

See also

Batch equity guide · simulateHandOutcomeBatchPacked