How to randomly get 0 or 1 every time?
Display matrix of 0s and 1s Write a function that displays an n-by-n matrix using the following header: Each element is 0 or 1, which is generated randomly. Write a test program that prompts the user to enter n and displays an n-by-n matrix. Here is a sample run: Here is my idea: