|   | RandomInt16Between Method | 
        
        
            Generates a cryptographically strong 16-bit random integer between specified values. i.e. [startNumber-stopNumber)
            
        
        Namespace: GSF.Security.CryptographyAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
 Syntax
Syntaxpublic static short Int16Between(
	short startNumber,
	short stopNumber
)
Public Shared Function Int16Between ( 
	startNumber As Short,
	stopNumber As Short
) As Short
public:
static short Int16Between(
	short startNumber, 
	short stopNumber
)
static member Int16Between : 
        startNumber : int16 * 
        stopNumber : int16 -> int16 GSF.Security.Cryptography.Random.Int16Between = function(startNumber, stopNumber);
Parameters
- startNumber  Int16
- A Int16 that is the low end of our range.
- stopNumber  Int16
- A Int16 that is the high end of our range.
Return Value
Int16A 
Int16 that is generated between the 
startNumber and the 
stopNumber.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| CryptographicException | The cryptographic service provider (CSP) cannot be acquired. | 
 See Also
See Also