We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 198cc5d commit 68bb20cCopy full SHA for 68bb20c
more_itertools/more.py
@@ -5499,7 +5499,7 @@ def random_ordered_range(*args):
5499
5500
def random_ordered_product(*iterables, repeat=1):
5501
"Return :func:`product` tuples in randomly shuffled order."
5502
- pools = tuple(map(tuple, iterables * repeat))
+ pools = tuple(map(tuple, iterables)) * repeat
5503
n = prod(map(len, pools))
5504
for index in _random_ordered_indices(n):
5505
yield nth_product(index, *pools)
0 commit comments