use gmp_rand...() subroutines