PHP function Mt_rand, Rand and other generated random number can be predicted??

Source: Internet
Author: User
PHP function Mt_rand, Rand and other generated random number can be predicted??

Please ask:
Because recently to do a one-dollar capture of the function, see the network: for example, Ecshop inside the one dollar treasure plug-in, he is and the old always color and user-related data to calculate the lucky number.

But if a function like Mb_rand is random enough (that is, almost impossible to predict), why not use random functions such as mb_rand to generate a lucky number?? Instead, it takes a lot of trouble to pick up the data and go to all kinds of calculations.

If I use the Mb_rand function to generate the lucky number, the fairness does not (afraid that the random function generated by the random number will be predicted, and then encountered some advanced players, randomly fiddle some numbers, to predict, it is unfair)??

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.