让我知道如何在 c# 中编写这三个函数:Randomize, Int, Ran()
随机化();
// 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());
}
}