Improve random placement in BaseGenerator class'