The length of license plate numbers is 6, with 2 letters and 4 numbers.
The first two characters are letters and the last four are numbers. Example: AA1234.
This is the code I have so far:
letterCombinations = Tuples[Alphabet[], 2];
numberCombinations = Tuples[Range[0,9], 4];
I tried to use Outer
to combine the lists of letters and the lists of numbers, but it failed. How can I fix it, I want output like this:
{{a,a,1,1,1,1},......}
Is Outer
a suitable?
Outer
? Please show us the attempt. $\endgroup$With[{l := RandomChoice[Alphabet[]], n := RandomInteger[9]}, {l, l, n, n, n, n}]
$\endgroup$