Here are the examples of the csharp api System.Random.NextInt64(long) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : RandomExtensions.cs
with MIT License
from dotnet-toolbelt
with MIT License
from dotnet-toolbelt
public static long NextInt64(this Random @this, long minValue, long maxValue)
{
if (minValue >= maxValue)
{
throw new InvalidOperationException();
}
var range = maxValue - minValue;
return @this.NextInt64(range) + minValue;
}