Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.List; import java.util.Random; public class Main { public static List<String> generateWidth() { List<String> ids = new ArrayList<String>(); Random mRandom = new Random(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < 50; i++) { sb.delete(0, sb.length()); int height = mRandom.nextInt(250) + 100; sb.append(height); ids.add(sb.toString()); } return ids; } }