Skip to main content

True Random Number Array Generator

This node generates an array of true random numbers using system entropy.

The TRNG Array node produces a batch of high-entropy random numbers.

The True Random Number Array Generator node functions similarly to the standard TRNG node but generates a list (array) of numbers at once using the system's cryptographic source.

Inputs​

Array​

DataDescription
SizeThe number of random elements to generate. Default: 1. Max: 10,000.

Actions​

SignalDescription
DoGenerates the array.

Outputs​

Data​

DataDescription
Generated ArrayAn array containing the generated random numbers.

Signals​

SignalDescription
DoneTriggered when the array generation is complete.

Usage​

Example Use Cases​

  1. Bulk Key Generation: Generate multiple secure tokens at once.
  2. Fair Shuffling: Generate random weights for a deck of cards to ensure a truly random shuffle.

Detailed Behavior​

  1. Source: Uses crypto.getRandomValues (browser) or crypto.randomBytes (Node.js) to fill a buffer, then converts it to numbers.
  2. Performance: Collecting entropy can be slower than PRNGs. Use only when necessary.
  3. Limits: Capped at 10,000 elements per call.

Troubleshooting​

  • Performance: If this node feels slow compared to ISAAC, it is because true randomness requires more system resources.