string pattern = @"."; //регулярка
string text = project.Variables["num"].Value; //переменная с текстом
Regex newReg = new Regex(pattern); //regex
MatchCollection matches = newReg.Matches(text);
//разбор по переменным
var var0 = matches[0];
string str0 = Convert.ToString(var0);
project.Variables["rand0"].Value = str0;
var var1 = matches[1];
string str1 = Convert.ToString(var1);
project.Variables["rand1"].Value = str1;
var var2 = matches[2];
string str2 = Convert.ToString(var2);
project.Variables["rand2"].Value = str2;
var var3 = matches[3];
string str3 = Convert.ToString(var3);
project.Variables["rand3"].Value = str3;
var var4 = matches[4];
string str4 = Convert.ToString(var4);
project.Variables["rand4"].Value = str4;
var var5 = matches[5];
string str5 = Convert.ToString(var5);
project.Variables["rand5"].Value = str5;
var var6 = matches[6];
string str6 = Convert.ToString(var6);
project.Variables["rand6"].Value = str6;
var var7 = matches[7];
string str7 = Convert.ToString(var7);
project.Variables["rand7"].Value = str7;
var var8 = matches[8];
string str8 = Convert.ToString(var8);
project.Variables["rand8"].Value = str8;
var var9 = matches[9];
string str9 = Convert.ToString(var9);
project.Variables["rand9"].Value = str9;