Random Alphanumeric String Generator

I recently needed to be able to generate a random alphanumeric string in ActionScript 3. After a little Googling I found an example that was written in C# on this post. I could have just used the code via a remoting call but I didn’t really want to do that unless I had to.

As I read the code I realized it would be super easy to implement the same thing in AS3 and save myself the remoting call.

Here’s the C# code:

and now the AS3 code: