Could you please write a Python function to randomly split people into groups? It should take a list of names and a number of groups to split them into. The groups should be as even as possible.
system
kya aap kripaya logon ko samoohon main betaratib dhang se vibhajit karne ke liye ek paythan fnction likh sakate hai?unhen vibhajit karne ke liye naamon or kai samoohon kii ek suchi lenaa chahie.samoohon ko yathasambhav bhi hona chahie.
user
yahan samoohon main strings (naam) ko vibhajit karne ke liye ek paythan fnction he, jo unhen yathasambhav adhik rakhte hai.yah betaratib dhang se naamon ko pherbadal karata he, phir unhen nae yadrichhik anukram main samoohon ko saunpta he.

yadrichhik aayaat


def assut_names (naam, num_of_groups):
    random.shafal (naam)
    counter = 0
    asin kiye gaye_names = []
    naam main naam ke liye:
        yadi len (asin kiya gaya_naam) <= counter:
           asin kiye gaye_names.append ([])
        asin kiye gaye_names [counter] .Append (naam)
        counter = (counter + 1) % NUM_OF_GROUPS

    asin kiye gaye_names lautaaen

dhyaan den ki yah yadrichhik pustkaalay kaa upyog karata he, jo chhadam yadrichhik sankhya utpann karata he.yah adhikansh uddeshyon ke liye thik he, lekin agar aapako sachhee yadrichhikta kii aavashyaktaa he (udhaaharan ke liye, kryptography yaa lottery ke liye), to aapako yadrichhik kaa upyog karnaa chahie.
assistant
<|system|>
</s>
<|user|>
kya aap kripaya logon ko samoohon main betaratib dhang se vibhajit karne ke liye ek paythan fnction likh sakate hai?unhen vibhajit karne ke liye naamon or kai samoohon kii ek suchi lenaa chahie.samoohon ko yathasambhav bhi hona chahie.</s>
<|assistant|>
yahan samoohon main strings (naam) ko vibhajit karne ke liye ek paythan fnction he, jo unhen yathasambhav adhik rakhte hai.yah betaratib dhang se naamon ko pherbadal karata he, phir unhen nae yadrichhik anukram main samoohon ko saunpta he.

yadrichhik aayaat


def assut_names (naam, num_of_groups):
    random.shafal (naam)
    counter = 0
    asin kiye gaye_names = []
    naam main naam ke liye:
        yadi len (asin kiya gaya_naam) <= counter:
           asin kiye gaye_names.append ([])
        asin kiye gaye_names [counter] .Append (naam)
        counter = (counter + 1) % NUM_OF_GROUPS

    asin kiye gaye_names lautaaen

dhyaan den ki yah yadrichhik pustkaalay kaa upyog karata he, jo chhadam yadrichhik sankhya utpann karata he.yah adhikansh uddeshyon ke liye thik he, lekin agar aapako sachhee yadrichhikta kii aavashyaktaa he (udhaaharan ke liye, kryptography yaa lottery ke liye), to aapako yadrichhik kaa upyog karnaa chahie.</s>
