Python Forum
random permutation - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: random permutation (/thread-7851.html)



random permutation - boris602 - Jan-27-2018

Hi guys,for a homework about the "100 prisoner problem" i need some command that gives me a random permutation that i can find in "p".
p=Permutations(100)
. I would be really grateful for some help.


RE: random permutation - j.crater - Jan-27-2018

Hello, see if you can find something of use here.


RE: random permutation - nilamo - Feb-21-2018

No one will do it for you (or if they do, I'll just delete their response).
Share what you've tried so far, and we'll help out if you have issues.

Also, what's the 100 prisoner problem?