Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21243

Random Numbers from 0 to &HFFFFFFFF

$
0
0
Hi all

i want generate hex random values from 0 to &HFFFFFFFF

but it gives me error overflow 6

RandomNumberLong = CLng((Upperbound - Lowerbound + 1) * Rnd + Lowerbound)

what should i do to achieve this because i am getting overflow

are there any fix for this. or i should use GetTickCount.

Viewing all articles
Browse latest Browse all 21243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>