Tag Info

Hot answers tagged

1

With minimum modification to your code, this should work (but this is still a pretty odd way to write a function) X := (v = 1; While[v > 0.1, v = RandomVariate[UniformDistribution[{0, 1}], 1][[1]]; Print["~", v]]; v) X



Only top voted, non community-wiki answers of a minimum length are eligible