ParadigmShifter
Random Nonsense Generator
Well that's not correct anyway, it only looks for 2 consecutive values being equal and doesn't terminate otherwise. Also, it indexes an array with -1 = bad mojo.
EDIT: But in VB it would be something like (with bug fixed)
array(0) = 0 'Initial value of x
i = 0
y = 2 'value of y, you want to iterate over several values of y
Do
i = i + 1
array(i) = y*array(i-1)*(1-array(i-1))
While array(i) <> array(i-1)
EDIT: 2 bugs in code fixed
EDIT: But in VB it would be something like (with bug fixed)
array(0) = 0 'Initial value of x
i = 0
y = 2 'value of y, you want to iterate over several values of y
Do
i = i + 1
array(i) = y*array(i-1)*(1-array(i-1))
While array(i) <> array(i-1)
EDIT: 2 bugs in code fixed
