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.159 -- Release Build+5d24840ce0d15ce331388f06653b739a14286834
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