Android examples for java.util:Random String
get Random String Number
//package com.java2s; public class Main { /**//from w w w . java 2 s .c o m * @return Returns a random number in string format */ public static String getRandomStringNumber(int length) { String number = ""; for (int i = 0; i < length; i++) { number += "" + (int) (Math.random() * 10); } return number; } }