Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    the php generated randomly not repeat the figures

    Php generated 6 and 12 no longer heavy digital generate 10 000, for example:

    244855 587753043808
    558676 168139952943

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Trying to figure out of this is a real post or not. . .
    The only ways you can do this is to either pick out of an existing list so that the item is not reusable, or generate while its not in the list. These are strings, so you can compare them using strcmp (you cannot have a 12 digit integer value without a custom class or using the math extensions; at most you can have 10 up to 2^32-1).


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •