Randomly generated 11-bit phone numbers

Source: Internet
Author: User
Importjava.util.Random;

/**
 * Created by the Administrator on 2017/5/25
 . * *
Test {
    main (string[] args)
        {(i = 0; i < 9; i++) {//9 representative loop nine times, Generate nine random number
            "139";//define telephone number with 139 opening
             Random ()///define RANDOM, generate random number
             (  j = 0; J < 8; J + +) {
                //Generate 0~9 random number
                + + = Random.nextint (9);
            }
            System. out. println (number);//output a phone numbers
        }
    }

}

Run Result:

13950035537 13966427550 13947766628 13916882701 13961332155 13937401011 13964507501 13901784558 13943250086

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.