commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Downey <steve.dow...@netfolio.com>
Subject [lang] RandomStringUtils javadoc patch
Date Sat, 28 Sep 2002 04:58:11 GMT
Does   :
public static String random(int count, int start, int end, boolean letters, 
boolean numbers, char[] set) 

really need to be public? Odds of correct use seem to be pretty low. It's a 
nice as a shared implementation, but it doesn't look like something that 
someone would really use.

Also, drawing and rejecting random characters can tail off forever. It's 
probablistic O(n), but the constant is proportional to the density of the 
allowed characters out of all characters. Something for the future. I didn't 
note this in the docs. Should I?






Mime
View raw message