BigInteger java method to gmp c++
===

I want to convert java code in c++

code is

    BigInteger value = new BigInteger(125, RandomNumber); 
    BigInteger clone = new   BigInteger(value.toByteArray());

 How to write this code in cpp using gmp library?