Contents

Set the seed for the random number generator

seedstring='Aspuru-Guzik';
seed=prod(double(seedstring));
rand('twister',seed);

List the group, going around the rooms as currently configured

Datatable={'Sangwoo';'Sule';'Roberto';'Cesar';'James';'Semion';'Man Hong';...
    'Jacob';'Johannes';'Kenta';'Alejandro';'Ivan';'Joel'};

Pick the lottery numbers

randvec=rand([length(Datatable),1]);

Sort the list of names according to the random numbers

[randsort,idx]=sort(randvec);
Datatable=Datatable(idx);

Output the list

for i=1:length(Datatable)
    Datatable{i,2}=i;
end
Datatable
Datatable = 
    'James'        [ 1]
    'Sangwoo'      [ 2]
    'Jacob'        [ 3]
    'Joel'         [ 4]
    'Ivan'         [ 5]
    'Kenta'        [ 6]
    'Man Hong'     [ 7]
    'Cesar'        [ 8]
    'Roberto'      [ 9]
    'Johannes'     [10]
    'Sule'         [11]
    'Semion'       [12]
    'Alejandro'    [13]