There are 30 characters (26 Latin characters and numbers 1,2,3,4). It is necessary to form 30 sets of 6 characters each, satisfying the requirements:
- all characters are randomly distributed
- in one set of 6 characters all characters are unique (i.e. not repeated)
- for each set of 6 characters there is another set that matches only 1 character
How can this be implemented through js?