Samlple random matrix generator in C language,