@@ -210,8 +210,8 @@ public float Float(float min = 0.0f, float max = 1.0f)
210
210
/// <summary>
211
211
/// Generate a random byte between 0 and 255.
212
212
/// </summary>
213
- /// <param name="min">Min value, default 0</param>
214
- /// <param name="max">Max value, default 255</param>
213
+ /// <param name="min">Min value, default byte.MinValue 0</param>
214
+ /// <param name="max">Max value, default byte.MaxValue 255</param>
215
215
public byte Byte ( byte min = byte . MinValue , byte max = byte . MaxValue )
216
216
{
217
217
return Convert . ToByte ( Number ( min , max ) ) ;
@@ -234,8 +234,8 @@ public byte[] Bytes(int count)
234
234
/// <summary>
235
235
/// Generate a random sbyte between -128 and 127.
236
236
/// </summary>
237
- /// <param name="min">Min value, default -128</param>
238
- /// <param name="max">Max value, default 127</param>
237
+ /// <param name="min">Min value, default sbyte.MinValue -128</param>
238
+ /// <param name="max">Max value, default sbyte.MaxValue 127</param>
239
239
public sbyte SByte ( sbyte min = sbyte . MinValue , sbyte max = sbyte . MaxValue )
240
240
{
241
241
return Convert . ToSByte ( Number ( min , max ) ) ;
@@ -244,8 +244,8 @@ public sbyte SByte(sbyte min = sbyte.MinValue, sbyte max = sbyte.MaxValue)
244
244
/// <summary>
245
245
/// Generate a random int between MinValue and MaxValue.
246
246
/// </summary>
247
- /// <param name="min">Min value, default MinValue</param>
248
- /// <param name="max">Max value, default MaxValue</param>
247
+ /// <param name="min">Min value, default int. MinValue</param>
248
+ /// <param name="max">Max value, default int. MaxValue</param>
249
249
public int Int ( int min = int . MinValue , int max = int . MaxValue )
250
250
{
251
251
return this . Number ( min , max ) ;
@@ -254,18 +254,18 @@ public int Int(int min = int.MinValue, int max = int.MaxValue)
254
254
/// <summary>
255
255
/// Generate a random uint between MinValue and MaxValue.
256
256
/// </summary>
257
- /// <param name="min">Min value, default MinValue</param>
258
- /// <param name="max">Max value, default MaxValue</param>
257
+ /// <param name="min">Min value, default uint. MinValue</param>
258
+ /// <param name="max">Max value, default uint. MaxValue</param>
259
259
public uint UInt ( uint min = uint . MinValue , uint max = uint . MaxValue )
260
260
{
261
261
return Convert . ToUInt32 ( Double ( ) * ( max - min ) + min ) ;
262
262
}
263
263
264
264
/// <summary>
265
- /// Generate a random ulong between -128 and 127 .
265
+ /// Generate a random ulong between MinValue and MaxValue .
266
266
/// </summary>
267
- /// <param name="min">Min value, default -128 </param>
268
- /// <param name="max">Max value, default 127 </param>
267
+ /// <param name="min">Min value, default ulong.MinValue </param>
268
+ /// <param name="max">Max value, default ulong.MaxValue </param>
269
269
public ulong ULong ( ulong min = ulong . MinValue , ulong max = ulong . MaxValue )
270
270
{
271
271
return Convert . ToUInt64 ( Double ( ) * ( max - min ) + min ) ;
@@ -274,8 +274,8 @@ public ulong ULong(ulong min = ulong.MinValue, ulong max = ulong.MaxValue)
274
274
/// <summary>
275
275
/// Generate a random long between MinValue and MaxValue.
276
276
/// </summary>
277
- /// <param name="min">Min value, default MinValue</param>
278
- /// <param name="max">Max value, default MaxValue</param>
277
+ /// <param name="min">Min value, default long. MinValue</param>
278
+ /// <param name="max">Max value, default long. MaxValue</param>
279
279
public long Long ( long min = long . MinValue , long max = long . MaxValue )
280
280
{
281
281
var range = ( decimal ) max - min ; //use more bits?
@@ -285,8 +285,8 @@ public long Long(long min = long.MinValue, long max = long.MaxValue)
285
285
/// <summary>
286
286
/// Generate a random short between MinValue and MaxValue.
287
287
/// </summary>
288
- /// <param name="min">Min value, default MinValue</param>
289
- /// <param name="max">Max value, default MaxValue</param>
288
+ /// <param name="min">Min value, default short. MinValue -32768 </param>
289
+ /// <param name="max">Max value, default short. MaxValue 32767 </param>
290
290
public short Short ( short min = short . MinValue , short max = short . MaxValue )
291
291
{
292
292
return Convert . ToInt16 ( Double ( ) * ( max - min ) + min ) ;
@@ -295,8 +295,8 @@ public short Short(short min = short.MinValue, short max = short.MaxValue)
295
295
/// <summary>
296
296
/// Generate a random ushort between MinValue and MaxValue.
297
297
/// </summary>
298
- /// <param name="min">Min value, default MinValue</param>
299
- /// <param name="max">Max value, default MaxValue</param>
298
+ /// <param name="min">Min value, default ushort. MinValue 0 </param>
299
+ /// <param name="max">Max value, default ushort. MaxValue 65535 </param>
300
300
public ushort UShort ( ushort min = ushort . MinValue , ushort max = ushort . MaxValue )
301
301
{
302
302
return Convert . ToUInt16 ( Double ( ) * ( max - min ) + min ) ;
@@ -305,8 +305,8 @@ public ushort UShort(ushort min = ushort.MinValue, ushort max = ushort.MaxValue)
305
305
/// <summary>
306
306
/// Generate a random char between MinValue and MaxValue.
307
307
/// </summary>
308
- /// <param name="min">Min value, default MinValue</param>
309
- /// <param name="max">Max value, default MaxValue</param>
308
+ /// <param name="min">Min value, default char. MinValue</param>
309
+ /// <param name="max">Max value, default char. MaxValue</param>
310
310
public char Char ( char min = char . MinValue , char max = char . MaxValue )
311
311
{
312
312
return Convert . ToChar ( Number ( min , max ) ) ;
@@ -315,8 +315,8 @@ public char Char(char min = char.MinValue, char max = char.MaxValue)
315
315
/// <summary>
316
316
/// Generate a random chars between MinValue and MaxValue.
317
317
/// </summary>
318
- /// <param name="min">Min value, default MinValue</param>
319
- /// <param name="max">Max value, default MaxValue</param>
318
+ /// <param name="min">Min value, default char. MinValue</param>
319
+ /// <param name="max">Max value, default char. MaxValue</param>
320
320
/// <param name="count">The length of chars to return</param>
321
321
public char [ ] Chars ( char min = char . MinValue , char max = char . MaxValue , int count = 5 )
322
322
{
0 commit comments