Search results for query: *

  1. MegasXLR

    Random.Next() never returning the number 0

    Thanks, will try it out.
  2. MegasXLR

    Random.Next() never returning the number 0

    I used a MessageBox.Show() on each step where problem might have been and sure enough I found out what it was :) Sadly an empty array created with "int[] array = new int[number]" is filled with zeros in C#, not null. I think in C++ it wasn't like that, but could be wrong. And I have a check for...
  3. MegasXLR

    Random.Next() never returning the number 0

    So here's the function that generates the numbers: private void generateRandomNumbers(object sender, EventArgs e) { if ((this.numbersAmountInputBox.Text != null) && (this.rangeFromInputBox.Text != null) && (this.rangeToInputBox.Text != null)) {...
  4. MegasXLR

    Random.Next() never returning the number 0

    OK, sorry. Thought it would be easier to start my app and see where the problem could be.
  5. MegasXLR

    Random.Next() never returning the number 0

    Hello everyone, I'm kind of new to C# in general (only made a few console apps around two years ago) and am making a Random Number Generator app for Windows. Everything works perfectly except one thing: Whenever I enter 0 as the lower bound and tick the checkbox to include it (so the result can...
Back
Top Bottom