المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Returning Random Unicode Characters



C# Programming
03-31-2009, 03:00 PM
I'm having a bit of a problem getting the Unicode version of this:


((char)((int)'a' + new Random().Next(26))).ToString();


The above snippet returns a random lowercase character. I'm trying to do the same thing for Unicode Characters in the range of 0621 - 064A

Suggestions?

If the post was helpful, please vote!


Why won't the worm just leave me be?