|
-
Jul 19th, 2003, 08:21 PM
#1
Thread Starter
New Member
Unique Random Number Sequences??
Anyone now how to, within a self contained function, generate a sequence of UNIQUE random numbers all in a given range?
Based, perhaps, around a call somthing like.....
'************************************************************************
' Paramaters
' NumOfNumbers: Number of unique random numbers to generate
' minRange: Minimum value of any returned random number
' maxRange: Maximum value of any returned random number
' Returns
' randomSequence(): Array of UNIQUE random numbers
'************************************************************************
Public Function getRandomSequence(NumOfNumbers As Integer, minRange As Long, maxRange As Long) As randomSequence()
End Function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|