Olivier Ruatta <Olivier.Ruatta at sophia.inria.fr> writes: > > #define mp_bits_per_limb 2 //here you can change 2 for everythings you ant, nothing change No, that's a constant. > mp_limb_t n[40]; mpn_random(n,ns); Maybe mpz_urandomb does what you want.