Generate random positions for units