Models keep going off screen when using replicator

Using Replicator in Code.
I’m generating scenes of bottles in an open space at various distances and rotations. My problem is that sometimes the bottles wind up almost entirely going off screen with barely a smidge poking out, and that will mess with what we’re training. What edits should I make to my code to prevent that? Like make the randomization more of a funnel where the x-y range gets bigger as the z range changes. (2.7 KB)
Code is above.