VB.NET
VB.NET
Generating Random Integer in Range
See more PRNG Examples
Demonstrates how to generate random integers in a specified range.Chilkat VB.NET Downloads
Dim success As Boolean = False
' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.
success = False
Dim fortuna As New Chilkat.Prng
' Generate random integers between 12 and 24 inclusive
Dim i As Integer
For i = 0 To 100
Debug.WriteLine(fortuna.RandomInt(12,24))
Next