samedi 23 octobre 2021

Random replace items between lists [closed]

I Have 2 Lists of data list_A = [2,3,4,5,33,42,21] and list_B = [1,11,35,48,19].I have tow types of questions. number 1: how can I replace randomly tow items form list_B with list_A for 200 iterations and 200 lists created must be unique. for example List_1 = [**2**,11,35,48,**42**] number 2: how can I replace first tow items of list_B and randomly select from list_A for example list_2 = [**5**,**33**,35,48,19]




Aucun commentaire:

Enregistrer un commentaire