View Single Post
Old Jun 12th, 2006, 6:15 PM   #3
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
I don't know of anything to specifically generate sequences like that, but you could probably come up with your own fairly easy. Afterall, it's just like using base-26 numbering, without any arabic numerals, i.e.
String makeStr(int num)
{
  String s = ('a' + num / 26);
  s += ('a' + num % 26);
  return s;
}
I didn't test this or anything, but as long as you have less than 26^2 strings, it'll get you the basic idea.
Jimbo is offline   Reply With Quote