string str = project.Variables["message"].Value;
string str1 = string.Empty;
char[] cyr = {'а','е','о','у','с','р','х','В','Т','Р','О','Х','М','К','Н','З','С'};
char[] lat = {'a','e','o','y','c','p','x','B','T','P','O','X','M','K','H','3','C'};
Random rnd = new Random();
for (int i = 0; i < str.Length; i++){
char c = str[i];
int r = rnd.Next(0, 2);
if(r==1)
for(int k = 0; k < cyr.Length; k++)
if(c == cyr[k]){
c = lat[k];
break;
}
str1 += str1 + c;
}
project.Variables["message_unique"].Value = str1;