Friday, 13 September 2013

Random complex numbers

Random complex numbers

I'm placing some "critters" on a complex plane by assigning the positions
that are complex numbers. Then I would like them to make a random move on
the plane between 0 and some distance that creature can move. This would
be easy if there were the equivalent of randInt(a, b), e.g. randComplex(a,
b), where a and b are complex numbers. But I can't find this capability
anywhere. Anyone know of something that does this?
(I know I could break out the parts and do random processing on the parts,
but I'd prefer not to have to calculate the complex distances myself!)

No comments:

Post a Comment