.. _auto_math_random: *GENERATE A RANDOM NUMBER* ========================== Generates a single pseudo-random floating-point number uniformly distributed between a specified minimum and maximum value. Use this worker wherever a stochastic scalar is needed inside a workflow, such as random noise injection or Monte Carlo sampling steps. When to use ----------- Classification: **process**. Tagged: ``math``, ``monte_carlo``, ``mt_rand``, ``random``, ``scalar``, ``stochastic``, ``uniform``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Min Value - min_value - scalar - 0 - ✓ - Lower bound of the random number range (inclusive); dimensionless scalar, default 0. * - Max Value - max_value - scalar - 1 - ✓ - Upper bound of the random number range (exclusive); dimensionless scalar, default 1. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - math_random_output_1 - math_random_output_1 - scalar - A single pseudo-random floating-point number drawn from a uniform distribution over [min_value, max_value). Disciplines ----------- - data.statistics - design_exploration.reliability Runnable example ---------------- A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: `/api/workflow/example?id=math_random `_ .. raw:: html

Auto-generated from transformation schema. Worker id: math_random. Schema hash: 8e4cb13c40c9. Hand-curated docs in workerexamples/ override this page when present.