How to assign random integers to a matrix

Great. Please mark the solution for the benefit of those to follow.