about the random class
Public Virtual int next (INT minvalue, int maxvalue);
// Summary:
// returns a random number within the specified range.
// parameter:
// minvalue:
// lower bound of the returned random number (this lower bound value is recommended for a random number ).
// maxvalue:
// upper bound to the returned random number (the upper bound value cannot be obtained for a random number ). Maxvalue must be greater than or equal to minvalue.
// return result:
// a 32-bit signed integer greater than or equal to minvalue and less than maxvalue, that is: the returned value ranges from minvalue to maxvalue. For example,
Result
// If minvalue is equal to maxvalue, minvalue is returned.
//
// Exception:
// System. argumentoutofrangeexception:
// Minvalue is greater than maxvalue.
Public Virtual int next (INT minvalue, int maxvalue );
Note: The returned value is minvalue <= returnvalue <maxvalue
13:24:53