Gemstone Security Library
Show/Hide TOC

# RandomUInt24ValueBetween Method

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

## Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.156 -- Release Build+4c3328ef2f2dd1ee21cfac62d79c5988f91f59e3
C#
View Source Request Example

    public static UInt24 ValueBetween(
    	UInt24 startNumber,
    	UInt24 stopNumber
    )

VB
View Source Request Example

    Public Shared Function ValueBetween (
    	startNumber As UInt24,
    	stopNumber As UInt24
    ) As UInt24

C++
View Source Request Example

    public:
    static UInt24 ValueBetween(
    	UInt24 startNumber,
    	UInt24 stopNumber
    )

JavaScript
View Source Request Example

    Gemstone.Security.Cryptography.RandomUInt24.ValueBetween = function(startNumber, stopNumber);

#### Parameters

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

#### Return Value

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

## Exceptions

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

## See Also

#### Reference

RandomUInt24 Class
Gemstone.Security.Cryptography Namespace