Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Random Numbers

Random Numbers

Scheduled Pinned Locked Moved Visual Basic
lounge
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    icouldntthinkofagoodname
    wrote on last edited by
    #1

    How would I write a program and get a random number

    R A D 3 Replies Last reply
    0
    • I icouldntthinkofagoodname

      How would I write a program and get a random number

      R Offline
      R Offline
      rwestgraham
      wrote on last edited by
      #2

      Just Google "Random Numbers" and "VB.NET", you'll get tons of hits. No random number is truly "random", and random number generation algorithms can vary from extremely simple to extremely complex, depending on how "random" you really need your numbers to be. I'm sure you'll find something that suits your needs.

      1 Reply Last reply
      0
      • I icouldntthinkofagoodname

        How would I write a program and get a random number

        A Offline
        A Offline
        Alfista71
        wrote on last edited by
        #3

        Buy this book with Samples: "Numerical Recipes in C" Its a coding bible. Its available on line. Scooter

        1 Reply Last reply
        0
        • I icouldntthinkofagoodname

          How would I write a program and get a random number

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4
          Dim myRNG As New Random()
          Dim newNumber As Integer = myRNG.Next(lowerBound, upperBound)
          

          But I vaguely remember telling you this already. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups