[Amazon] Random Generator

Given random generator from 1 – 5 with equal possibility. Design Random generator 1 – 7

设计一个5×5矩阵, 然后把1-7放进去, 多的地方放0. 随机选i和j, 如果选0  就重新选, 如果没有 就返回.