Page 1 of 1

Posted: 16 Jun 2011, 09:55
by joffo78
Hello

i'd like to make a patch witch use random to increment a value.
for example i start at 0 to arrive to 1 but i want to choose value between everytime in the same direction (value 2 smaller than value 1 but greater than value 2)
i want to arrive to a serie like 0; 0,04 ; 0.09 ; 0.12 ; 0,23 ; 0,26...
that is difficult is the next value must be relativly close than the previous
the last thing is the serie must start by 0
thanks for your help

Posted: 16 Jun 2011, 10:00
by joffo78
i think i find a solution with sort array !!!
i keep this post for who is interested ;)

Posted: 16 Jun 2011, 10:23
by nay-seven
maybe a little screenshot to show the solution you've found..?

Posted: 16 Jun 2011, 11:09
by joffo78
very simple in fact :
Image

Posted: 16 Jun 2011, 14:25
by nay-seven
thanks !