Array of geometric objects randomly sized

I would like to randomly size objects in an array of positions using python code or something similar to generate the objects in each position at random sizes. Is there a way to do this in Cubit, is there an example code for how to do this?