Java Random Number getTenByteNumber()

Here you can find the source of getTenByteNumber()

Description

get Ten Byte Number

License

Open Source License

Declaration

public static String getTenByteNumber() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Random;

public class Main {
    private static Random rd = new Random();

    public static String getTenByteNumber() {
        String tenByte = "";
        for (int i = 0; i < 10; i++) {
            tenByte = tenByte + rd.nextInt(9);
        }//from   w w w  . j  a  v  a 2 s  .c  om
        return tenByte;
    }
}

Related

  1. getRandomPortNumber()
  2. getRandonNumber(int range)
  3. getrannumber()
  4. getRndNumByLen(int lengthOfNumber)
  5. getSerialNumber(int length)
  6. randomHexNumber(final int length)
  7. randomNumber(int length)
  8. randomNumber(int min, int max, Random r)
  9. randperm(int number)