Square-Random-Symmetrical
Clash Royale CLAN TAG #URR8PPP up vote 18 down vote favorite 2 Challenge Write a program or a function that returns or prints a square-random-symmetrical matrix. Input N : The size of the matrix i.e 6 x 6 Output The matrix. You can either print it, return it as string (with the newlines) or as a list/array of lists/arrays. Rules You need to use at least N different characters, where N is the size of the square matrix (input). Since we 're using only letter [a, z][A, Z] and digits [0, 9] (and only 1 digit at the time) you can assume that N < 27 and N > 2 , that is because at N <= 2 you can't have both letters and digits. Last but not least, every letter/digit must have non-zero probability of occurring (uniform distribution is not a necessity). However, the result must have at least N different letter/digits. The matrix has to be both horizontally and vertically symmetrical. Exactly 2 rows and 2 columns must contain strictly one single-digit number (it...
