replace word with dynamic number
<p>For ex. I have string </p>

<pre><code>string text = @"Today is {Rand_num 15-22} day. {Rand_num 11-55} number of our trip.";
</code></pre>

<p>I need to replace every Rand_num constraction with rand number (between stated numbers 15-22 or 11-55)</p>

<p>Tried smth but don't know what to do next</p>

<pre><code>string text = @"Today is {Rand_num 15-22} day. {Rand_num 11-55} number of our trip.";
if (text.Contains("Rand_num"))
{              
    string groups1 = Regex.Match(text, @"{Rand_num (.+?)-(.+?)}").Groups[1].Value;
    string groups2 = Regex.Match(text, @"{Rand_num (.+?)-(.+?)}").Groups[2].Value;               
}
</code></pre>
