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.160 -- Release Build+19b74ac03cedad8575bb1ceb00051318b7421d0d
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