lundi 18 avril 2016

Random shuffle multiple lists python

I have a set of lists in Python and I want to shuffle both of them but switching elements in same positions in both lists like

          a=[11 22 33 44] b = [66 77 88 99]
          *do some shuffeling like [1 3 0 2]* 
          a=[22 44 11 33] b = [77 99 66 88]

Is this possible?




Aucun commentaire:

Enregistrer un commentaire