add length and random collection size