Java Random Int randomZeroString(int length)

Here you can find the source of randomZeroString(int length)

Description

random Zero String

License

Apache License

Declaration

public static String randomZeroString(int length) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static String randomZeroString(int length) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < length; i++) {
            sb.append("0");
        }// w  w  w .  ja v  a2s  . c o m
        return sb.toString();
    }
}

Related

  1. randomtest(int max)
  2. randomText(int length)
  3. randomWithinRange(int min, int max)
  4. randomWithRange(int min, int max)
  5. randomWord(int wordLength)
  6. randowPartition(int[] array, int q, int p)
  7. randProductNumerid(final int c, final int count)
  8. RandSelect(int iTotal)