Cube Size generic, Random cube creator

now create random cubes on position.

generaise the code.