About 183,000 results
Open links in new tab
  1. Random integer in VB.NET - Stack Overflow

    I need to generate a random integer between 1 and n (where n is a positive whole number) to use for a unit test. I don't need something overly complicated to ensure true randomness - just an old-

  2. [RESOLVED] Random Number Generator, NO Duplicate Numbers …

    Oct 4, 2013 · Hello, i'm working on a random number generator and I've been able to get everything working except the code to not duplicate the numbers within the random set. for …

  3. Random number generator-VBForums - Visual Basic

    Dec 9, 2024 · Re: Random number generator Rnd will return the same number over and over if Randomize isn't called correctly. The Random object will do the same if it is created too often. …

  4. vb6 - How to generate random numbers - Stack Overflow

    Feb 20, 2013 · In VB6, you need to initially seed the random number generator using the Randomize function. Then, to generate a random number, you must use the Rnd function, for …

  5. Tutorial - Random Numbers [VB6 and earlier]-VBForums - Visual …

    Nov 1, 2002 · Many questions in VB are regarding random numbers. In this tutorial I will try and explain the basic ideas regarding random numbers so it'll be easier for you to create your …

  6. Generate random numbers without repeat - Stack Overflow

    Without seeing the code, I can only guess that you are initialising the random number generator more than once, which will result in the same numbers being generated.

  7. How do I create a random number generator in vb.net

    Feb 23, 2015 · To get a basic operation from the set of four {+-*/}, you can use the same rules to give you a random value from zero to three inclusive: op = CInt(Math.Floor(4 * Rnd())) If you …

  8. vb.net - Can I set manually the seed of Randomization in Visual …

    Jul 23, 2021 · You can generate the same sequence of random numbers by providing the same seed value to the Random (Int32) constructor. For the example and detailed description refer …

  9. Visual Basic - Random Number Generator using Array and For Loop

    Apr 28, 2015 · All your loop is doing is generating random numbers, and assigning them to a variable, which then gets overwritten in the next iteration. You need to move the array …

  10. vb.net - Visual Basic generate random number - Stack Overflow

    Jul 25, 2017 · You would probably want to use the Rnd () function Rnd () generates a number n, 0<= n < 1 so if you want to generate a number between 1 and 10, you need to add +1, as …