CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: dajunka

Search: Search took 0.02 seconds.

  1. Replies
    6
    Views
    5,911

    Re: The best way to get random numbers.

    I am a amateur, but like to now and again make some small programs. It's fun.
    I have been with these forums for quite some years, because I have always found it so friendly and helpful with members...
  2. Replies
    6
    Views
    5,911

    Re: The best way to get random numbers.

    Really?
    Any chance of a quick code demonstration? It would save me having to go into the loft and dusting of my old books. :)
  3. Replies
    6
    Views
    5,911

    The best way to get random numbers.

    I want to get the closest I can to choosing true random numbers. Is this simple routine okay, or is there a better way?


    Randomize()
    For Me.a = 1 To 250
    listbox1.items.add (Rnd() *a)
    next
    ...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured