Multinomial Distribution#

This node generates samples from a list of strings/tokens.

Installation#

To use this Node, you must enable omni.replicator.core in the Extension Manager.

Inputs#

Name

Type

Description

Default

choices

any

The choices to be sampled

weights

float[]

The weights with which to sample

seed

int

Random Number Generator seed. A value of less than 0 will indicate using the global seed.

-1

numSamples

int

Number of samples to generate

1

withReplacements

bool

Whether to avoid duplicates in sampling.

True

Outputs#

Name

Type

Description

Default

samples

any

Sampled results

numSamples

int

Number of samples to generate

1