In Java you could also use the UUID class, but doubt its ported into
GWT.  Also, simply using the long value of time is also effective
assuming that there is no chance of ever generating 2 at the exact
same time(i.e. result of a user action): Long.toString(new
Date().getTime());

On Aug 17, 7:35 am, spierce7 <spier...@gmail.com> wrote:
> AH! I didn't think to search just java! Stupid me. Thanks so much.
>
> On Aug 17, 12:49 am, Jim Douglas <jdoug...@basis.com> wrote:
>
> > I did this google search:
>
> >http://www.google.com/search?q=java+generate+random+alphanumeric+string
>
> > That returns more suggestions that you could possibly need; take your
> > pick.  The first link returned from that search has several
> > suggestions:
>
> >http://stackoverflow.com/questions/41107/how-to-generate-a-random-alp...
>
> > On Aug 16, 9:05 pm, spierce7 <spier...@gmail.com> wrote:
>
> > > What would be the best way to generate a random string in GWT with no
> > > slashes (/ or \), preferably just capitol letters and numbers. How
> > > would I do this? I'm surprised I can't turn up any information in
> > > searches. I'm looking to do this Server Side, meaning in java, rather
> > > than javascript. Thanks!
>
> > > ~Scott

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to