- Posts: 58
- Joined: Tue Jan 05, 2021 9:23 pm
- Real Name: Justin Lewis
- Code: Select all
:var = 1; randomseed(0); i = 0; while i<time do i=i+1; var = var+random(-1,1)*0.1; end; return var
I believe random() will only spit out integers, thus the multiplier. I commonly add a UserControl to give a random seed so that the expression can be randomized but still be repeatable.