Simple script for generating a square matrix and a solution vector filled with random numbers.
./randmatrix 1024 > matrix.csv
This will generate a 1024 x 1024 matrix. The first two lines contain the number of rows and columns, followed by the matrix as CSV (character separated values) and the solution vector.