For several functions: ftn\_1, ftn\_2, ... , ftnk
I want to repeat 10 times randomly among above.
(The whole time is k^10.)

I find some function which acts like this way but it seems to act just for string : itertools.product

```
def ftn1():
   ...
def ftn2():
   ...
x=0;
itertools.product(x=ftn1(x), x=ftn2(x), .., x=ftnk(x), [repeat=10])

```

I want to do similar to above and find the smallest value for all cases.