I have a string "{Day} - is a victory day. {Day} - is my birthday";
How to replace {Day} with different numbers? I try:
string text = "{Day} - is a victory day. {Day} - is my birthday";
if (text.Contains("{Day}"))
text = text.Replace("{Day}", xNet.Rand.Next(1, 30).ToString());
But day is the same in 2 replacements.