How can I code my own attractor?

Pick one and implement it. Find the equations to the lorentz attractor and use those if you need a suggestion.