by The Aldinator (2 Submissions)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 6th June 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This code generates random hex numbers (is a fix of Shadab's code which is probably right below this snippet)
Dim a As Integer
a = 10 ' Number of hexadecimal numbers
HexGenerate (a)
End Sub
Function HexGenerate(intNum As Variant)
Dim i As Integer
For i = 1 To intNum
Randomize
intNum = Hex$((1000 * Rnd) + 1)
Print intNum
Next
End Function
No comments have been posted about This code generates random hex numbers (is a fix of Shadab's code which is probably right below thi. Why not be the first to post a comment about This code generates random hex numbers (is a fix of Shadab's code which is probably right below thi.