Using the knowledge in computational language in C++ it is possible to write a code that generates and displays 10 random (integer) numbers between 0 and 50.
<h3>Writting the code in C++</h3>
<em> class SecureRandom : Random</em>
<em> {</em>
<em> public static byte[] GetBytes(ulong length)</em>
<em> {</em>
<em> RNGCryptoServiceProvider RNG = new RNGCryptoServiceProvider();</em>
<em> byte[] bytes = new byte[length];</em>
<em> RNG.GetBytes(bytes);</em>
<em> RNG.Dispose();</em>
<em> return bytes;</em>
<em> }</em>
<em> public SecureRandom() : base(BitConverter.ToInt32(GetBytes(4), 0))</em>
<em> {</em>
<em />
<em> }</em>
<em> public int GetRandomInt(int min, int max)</em>
<em> {</em>
<em> int treashold = max - min;</em>
<em> if(treashold != Math.Abs(treashold))</em>
<em> {</em>
<em> throw new ArithmeticException("The minimum value can't exceed the maximum value!");</em>
<em> }</em>
<em> if (treashold == 0)</em>
<em> {</em>
<em> throw new ArithmeticException("The minimum value can't be the same as the maximum value!");</em>
<em> }</em>
<em> return min + (Next() % treashold);</em>
<em> }</em>
<em> public static int GetRandomIntStatic(int min, int max)</em>
<em> {</em>
<em> int treashold = max - min;</em>
<em> if (treashold != Math.Abs(treashold))</em>
<em> {</em>
<em> throw new ArithmeticException("The minimum value can't exceed the maximum value!");</em>
<em> }</em>
<em> if(treashold == 0)</em>
<em> {</em>
<em> throw new ArithmeticException("The minimum value can't be the same as the maximum value!");</em>
<em> }</em>
<em> return min + (BitConverter.ToInt32(GetBytes(4), 0) % treashold);</em>
<em> }</em>
<em> }</em>
See more about C++ code at brainly.com/question/19705654
#SPJ1