sampler_sample_weighted
Perform weighted random sampling from items with automatic weight normalization. Returns selected samples and normalized weights for AI applications.
Instructions
[sampler] Weighted random selection. weights auto-normalized. Returns {sample, weights_normalized}.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| weights | Yes | ||
| n | No | ||
| seed | No | ||
| replacement | No |