
January 22nd, 2003, 10:24 PM
|
|
"l33t? What's l33t?"
|
|
Join Date: Aug 2002
Posts: 51
Time spent in forums: < 1 sec
Reputation Power: 6
|
|
|
C# equivalent of PHP's range() function
Is there a C# equivalent to this function? I'm writing a random password generator script, and whilst I can do it using StringBuilder and typing in all the characters (a-zA-Z0-9) manually, I'd like to give the user the chance to specify their own character range.
The PHP for what I want to accomplish is this:
PHP Code:
function addChars($start,$end) {
$charArr = range($start,$end);
return $charArr;
}
print_r(addChars('a','z'));
Any suggestions?
Thanks,
-Jeb.
|