I need to align random objects on a path or plan

I was trying to search for a normal script but couldn't find...
I have many random objects, and want to align them Regularly on a path or on a plan, what I mean by align is to have the same distance between each object, it's like making array of different objects
Any idea?
Thank you