Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

permutation with repetition python

from itertools import product
for roll in product([1, 2, 3, 4, 5, 6], repeat = 2):
    print(roll)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #permutation #repetition #python
ADD COMMENT
Topic
Name
5+3 =