The randomize method will never construct class objects for you. You need to construct your array of items before calling randomize() or using the pre_randomize() method. The array needs to be as large as your constraints will allow, and the array size will get trimmed down to the size determined during randomization.