>> That apart the use of rand(3) to generate random coefficients is suboptimal. >> The range is limited from 0 to RAND_MAX (2147483647 on ia32). > > GMP supports the generation of arbitrary-size pseudo-random numbers. Yes. I just need a few numbers to create a test Matrix though.