Fixed constructor for RandArray