How to generate a list of random ID which can later be used instead of participant name?
Ältere Kommentare anzeigen
Hello every one,
I want to programm a code in which I can generate a list of random ID to use as test person ID later during my experiments.
- Each ID has to be consisted of 2 letters as well as 2 digits (e.g., 2g9e)
I would be so thankful if somebody could advise me how to do so.
Best regards,
Parishad
1 Kommentar
the cyclist
am 4 Mär. 2021
May I ask why this particular format? It would certainly be easier to do pure numerical digits.
Akzeptierte Antwort
Weitere Antworten (1)
David Hill
am 4 Mär. 2021
Yes, a strictly numerical format would be much easier.
a=[randperm(10,2)+47;randperm(26,2)+96];
a=char(a(:)');
3 Kommentare
the cyclist
am 4 Mär. 2021
Still not too difficult.
I was trying to tease out that maybe this was a homework assignment. :-)
Walter Roberson
am 4 Mär. 2021
We are not promised that the order of digits and letters is fixed, just that there are two of each.
Parishad Bromandnia
am 5 Mär. 2021
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!