e^($i$rand instead of 1.

I'm lost. EDIT: Now I understand. You mean to select a random starting position. Fair enough.

]]>` ``:-1→Xmin:1→Xmax :0→Ymin:1→Ymax :Repeat 0 :Pt-On(real(Ans),imag(Ans :.5(Ans+e^(.5iπint(3rand :End`

:-1→Xmin:1→Xmax

:0→Ymin:1→Ymax

:1:Repeat 0

:Pt-On(real(Ans),imag(Ans

:.5(Ans+*e*^(.5*i*πint(3rand

:End

Original code:

` ``:ClrDraw :0→Xmin:2→Xmax :0→Ymin:1→Ymax :rand→A:rand→B :{0,1,2→L₁ :{0,1,0→L₂ :Repeat getKey :randInt(1,3→C :mean({A,L₁(C→A :mean({B,L₂(C→B :Pt-On(A,B :End`

Optimised code:

` ``:ClrDraw :0→Xmin:2→Xmax :0→Ymin:1→Ymax :rand→A:rand→B :Repeat getKey :randInt(-1,1→C :mean({A,Ans+1→A :mean({B,1-C²→B :Pt-On(A,Ans :End`