Random base and gate positioning.