triangular-random* ( low high rnd -- n )


Vocabulary
random

Inputs
lowan object
highan object
rndan object


Outputs
nan object


Definition


:: triangular-random* ( low high rnd -- n )
low high + 2 /f :> mode mode low - high low - /
:> c! rnd random-unit* :> u! high low u c >
[ 1.0 u - u! 1.0 c - c! swap ] when [ - u c * sqrt * ] keep
+ ;