I converted this code
Randomize()
PassLen = 0
CurrPass = ""
do while PassLen < 20
CurrLtr = Int((42 * Rnd()) + 48)
if CurrLtr < 57 or CurrLtr > 65 then
CurrPass = CurrPass & Chr(CurrLtr)
PassLen = PassLen + 1
end if
loop
To C# because I only know C# and got this
# VBMath.Randomize();
# PassLen = 0;
# CurrPass = "";
#
# while (PassLen < 20) {
# CurrLtr = Conversion.Int((42 * VBMath.Rnd()) + 48);
# if (CurrLtr < 57 | CurrLtr > 65) {
# CurrPass = CurrPass + Strings.Chr(CurrLtr);
# PassLen = PassLen + 1;
# }
# }
But I still dont get what the code does. Im only told its used to get a random alpha-numeric sequence. Can anyone tell me what it means and does? So I can rewrite the function to work in my .aspx page..
...
Go to the complete details ...