I've been in a "quest" about creating a definition that would generate a list of points from a starting point and randomly generated vectors, and wouldn't grow beyond an imposed limit.
The way i've been trying to make it sound a bit cruel (and not very smart): evaluate the proximity of the last point to the limit and, if it's closer than it should be, that point is eliminated.
The idea was that the algorithm would return to the previous point (valid) and generate a new valid point (and so on)... but it doesn't quite work like that! For some reason, it (sometimes) "crosses the fence", and i can't figure out why :/
All help is welcome, please!
Thank you all ;)