Gemstone Common Library
Show/Hide TOC

# RandomInt64Between Method

Generates a cryptographically strong 64-bit random integer between specified values.

## Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.164 -- Release Build+6bbd7ea5ff4ad8917f12d693358b77d083ee278e
C#
View Source Request Example

    public static long Int64Between(
    	long startNumber,
    	long stopNumber
    )

VB
View Source Request Example

    Public Shared Function Int64Between (
    	startNumber As Long,
    	stopNumber As Long
    ) As Long

C++
View Source Request Example

    public:
    static long long Int64Between(
    	long long startNumber,
    	long long stopNumber
    )

JavaScript
View Source Request Example

    Gemstone.Security.Cryptography.Random.Int64Between = function(startNumber, stopNumber);

#### Parameters

startNumber Int64
  A Int64 that is the low end of our range.
stopNumber Int64
  A Int64 that is the high end of our range.

#### Return Value

Int64
A Int64 that is generated between the startNumber and the stopNumber.

## Exceptions

CryptographicException | The cryptographic service provider (CSP) cannot be acquired.

## See Also

#### Reference

Random Class
Gemstone.Security.Cryptography Namespace