Community discussion forum

Random Numbers... That Work!

This is a comment thread discussing Random Numbers... That Work!
  • 10 years ago

    This thread is for discussions of Random Numbers... That Work!.

  • 3 years ago
    Very helpful, well explained, cleared up my question.
  • 2 years ago
    Yes sir, you're right. Effectively, this procedure really works. Thanks!
  • 2 years ago
    neat.. btw, do you have the C# version of this? thanks..

  • 1 year ago

     thank you sir.

     

    looking for this for looong time already.

  • 8 months ago
    If you wanted to keep this functionality, but contain everything within the same function, declaringyour random number as static would work too. Public Function GetRandomNumber(Optional ByVal Low as Integer = 1, Optional ByVal High As Integer = 100) As Integer Static objRandom as New Random() Return objRandom.Next(Low, High + 1) End Function

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!