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
c++helpcsharpquestion
3 Posts 3 Posters 8 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.
  • M Offline
    M Offline
    Michael Goesch
    wrote on last edited by
    #1

    My problem seems to be an issue of generating random numbers. While the statements are quite clear and easy and all of us are familiar with it, I never can seem to come up with a set of truly random numbers, while hating to sound totally stupid and an idiot, it has been quite frustrating. I have used the "Randomize" statement, but it seems to not work very well or I have overlooked something that is far too easy. The program I am creating relies on a set of truly randome numbers to function. I use Visual Basic.net and I also Have Visual C++.Net as well, maybe I should switch gears and use another programming language??:eek: Michael Goesch

    R 1 Reply Last reply
    0
    • M Michael Goesch

      My problem seems to be an issue of generating random numbers. While the statements are quite clear and easy and all of us are familiar with it, I never can seem to come up with a set of truly random numbers, while hating to sound totally stupid and an idiot, it has been quite frustrating. I have used the "Randomize" statement, but it seems to not work very well or I have overlooked something that is far too easy. The program I am creating relies on a set of truly randome numbers to function. I use Visual Basic.net and I also Have Visual C++.Net as well, maybe I should switch gears and use another programming language??:eek: Michael Goesch

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      Computers cannot pick truly random numbers. They can't make guesses... They don't feel pain, or remorse... Oh, sorry... getting carried away there. http://home1.gte.net/deleyd/random/introduction.html[^]


      Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Unknown wrote: "I love long walks, especialy taken by those that annoy me." Paraphrased from TMNT: "Cricket? You have to know what a crumpet is to understand Cricket."


      D 1 Reply Last reply
      0
      • R Ray Cassick

        Computers cannot pick truly random numbers. They can't make guesses... They don't feel pain, or remorse... Oh, sorry... getting carried away there. http://home1.gte.net/deleyd/random/introduction.html[^]


        Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Unknown wrote: "I love long walks, especialy taken by those that annoy me." Paraphrased from TMNT: "Cricket? You have to know what a crumpet is to understand Cricket."


        D Offline
        D Offline
        DxSolo
        wrote on last edited by
        #3

        i had a similar problem with vb.net first i had coded the game yahtzee in vb6 and it worked fine then i was converting it into vb.net and after i got all the stuff out of the way i ran it in debug mode and i saw i got 5 random numbers which i use to change the pictures of the die showing but when i took it out of debug mode i get the same five numbers like i get all 1's or all 2's etc but the moment i put it into step by step debug it works perfectly again so maybe its a bug in .net cause i got pretty pissed off because i thought how in the hell do i debug something that works perfect in debug mode? don't know if this helps or not

        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