Skip to content

Random Get Float Around Center

Gets a random float value within a range defined by a center and a magnitude:
[Center - Magnitude, Center + Magnitude].

Optionally applies a falloff curve to bias how values are distributed around the center - for example, to make results cluster near the center or more likely at the extremes.

Use it for effects like natural variation, noise, random offsets, or imprecise targeting.

Parameters

Parameter Description
Center The midpoint of the random range.
Magnitude The maximum deviation from the center. The result will be between Center - Magnitude and Center + Magnitude.
Falloff An AnimationCurve defining the probability falloff by distance from the center.
Leave unset for a uniform distribution.
Store Result Float variable to store the random value.

Falloff

Biased to center:

NormalCurve

Biased to outer edge:

NormalCurveInverted

Tips

  • Repeatability: Combine with Random Init State to reproduce the same sequence of results.
  • Uniform vs. curved: Leave Falloff unset for even probability; use a curve to bias results toward or away from the center.
  • Use global AnimationCurve variables for commonly re-used curves, or curves that you want to tweak in one place.

Common Pitfalls

  • Negative magnitude: Automatically clamped to zero.
  • Unset falloff: Uses a uniform distribution, not a bell curve.
  • Extreme curve values: Overshooting above 1 on the Y-axis may flatten or exaggerate results unpredictably.

See Also