Let me know how to write the this three function in c#: Randomize, Int ,Ran()
Randomize();
// This is my VB Code
for ( ; (KeyOK(sKey) == false); )
{
for ( ; (PartOK(sPart2) == false); )
{
sPart2 = "";
for (lCount = 1; (lCount <= PART_LENGTH); lCount++) {
sPart2 = (sPart2 + Int((10 * Rnd())).ToString());
}
}
Use the class
Randomto get a random number.Then use one of the overloaded method calls of the
Next()method to get a random number.