Code example for SecureRandom

Methods: setSeed

0
public class MiscUtil { 
 
	private static SecureRandom random = new SecureRandom();
	 
	{ 
		random.setSeed(System.currentTimeMillis());
	} 
	 
	public static double random() { 
		return random.nextDouble();
	} 
	 
	public static <T extends Object> void scramble(List<T> list) {
		 
		List<T> tmpList = new ArrayList<T>();
		for (int i = 0; i < 2; i++) {
			tmpList.clear();
			tmpList.addAll(list);
			list.clear();
			 
			while (tmpList.size() > 0) {