Implement amount for random() method on Collection.