each and rand