Firstnameset={' Qian',' Zhang',' Li',' Wang',' Zhao',' Wu'};
Secondnameset={' two',' three',' four',' five',' six',' pockmarked'};
temp = rand perm(6);
Disp ('lottery result:');
person 1 =[cell 2 mat(first name set(temp( 1))),cell 2 mat(second name set(temp( 1))];
person 2 =[cell 2 mat(first name set(temp(2))),cell 2 mat(second name set(temp(2)))];
disp(person 1);
Disp (personnel 2);
You can see the result after running a lap ~