Использовать формат строки:
Random rand = new Random();
string bin = "517070";
string productCode = "30";
string branchCode = "01";
int randNumber = rand.Next(0, int.MaxValue);
string number = string.Format("{0}{1}{2}{3}", bin, productCode, branchCode, randNumber.ToString("D20"));