[#6]Added random_size_array method