VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code generates random hex numbers (is a fix of Shadab's code which is probably right below thi

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)

Rate This code generates random hex numbers (is a fix of Shadab's code which is probably right below thi



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

Download this snippet    Add to My Saved Code

This code generates random hex numbers (is a fix of Shadab's code which is probably right below thi Comments

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.

Post your comment

Subject:
Message:
0/1000 characters