allows #count to take a range argument for random count