Search:

Type: Posts; User: matinm90

Search: Search took 0.07 seconds.

  1. Replies
    12
    Views
    5,518

    Re: generate unique 9 digit number bug

    Oh okay that makes sense thank you, I didnt realize that the random class did that. I thought nextInt(9) created number from 0 to 9, but i guess not. Thank you!
  2. Replies
    12
    Views
    5,518

    Re: generate unique 9 digit number bug

    Oh so then if I took that string and converted it back into a Integer, would it retain the whole value? or would some numbers get lost? hope that made sense.
  3. Replies
    12
    Views
    5,518

    Re: generate unique 9 digit number bug

    Well I dont see any with zeros in the beggining, does that mean java ignores leading zeros and deletes them?

    540326781 9
    457230168 9
    51328764 8
    250871643 9
    370418652 9
    206357814 9
    157204638...
  4. Replies
    12
    Views
    5,518

    Re: generate unique 9 digit number bug

    Sorry for taking so long i posted the code on the original message.
  5. Replies
    12
    Views
    5,518

    generate unique 9 digit number bug

    Okay so I wrote a method that generates a random 9 digit number with each digit being unique, the problem i am having, is for some reason, there is a case where the method accidentally returns an 8...
Results 1 to 5 of 6