Trying to create a command that draws 5 random, non-repeating numbers from 1-69 listed in ascending order, then a random number from 1 to 26.

Final example output format should be 09-11-20-27-59 / 11

The last part is easy: $(eval Math.floor((Math.random() * 26) + 1))

Browsing the forum I saw this code that selects non-repeating variables from a list, but you have to type how many variables to select as well as list every variable manually in chat. Maybe it can be modified.

$(eval match=$(query).match(/^(\d+) (.)$/);if(match){n=parseInt(match[1]);c=match[2].split(â€ś,â€ť);if(n>c.length){â€śThe number of choices to pick was larger than the number of choicesâ€ť}else{for(i=c.length-1;i>0;iâ€“){j=Math.floor(Math.random()(i+1));x=c[i];c[i]=c[j];c[j]=x}c.slice(0,n).sort().join(â€ś,â€ť)}}else{â€śEnter the number of choices to pick, followed by a comma-separated list of choicesâ€ť})