Problems with position.y

Hallo friends, I have a problem that seems to be easy to solve but I am breaking my head to undestand. Basically I have a loop that creates an array of cubes with the Y-axis of random value and add to a group. My goal is to create a random terrain for a game, so far so good.

My problem is that the Y position does not keep at 0, the objects are centering on the Y axis, see the image:

Below you can see my code:

Does anyone have an idea how to solve this?

It should be enough to move each cube up on y-axis by ½ of its height (geometries are build evenly in all directions around their origin points.)


It worked perfect, that was fast! Thanks!!!