In line 9, i declare a "dir" variable. for direction in my class called "fish" (I think i'm using the terminology right here.)
Then in line 44-48, 5th parameter in, I have something writte as the following: random(0, TWO_PI).
Further down I have line 72 basically saying when the direction variable is between PI*0.5 and PI*1.5, then the object (fish) will have a "left" orientation.
On line 82, I have an else statement. I want this else statement to basically mean the following: For all other values between 0 and PI*2 that is not between PI*0.5 and PI*1.5 the object (fish) will have a "right" orientation.
My logic is probably wrong.
Everytime I try to run it, all I get is fishes having a "left" orientation.