Функция RandLetterRUS() возвращает случайные буквы русского алфавита
Function RandLettersRUS(LenLetter As Integer)
Randomize
RandLettersRUS = Space(LenLetter)
For iCount = 1 To LenLetter
Mid(RandLettersRUS, iCount, 1) = Chr((Int(192 + (Rnd() * 64))))
Next
End Function
Функция RandUpperLetterENG() возвращает случайные прописные буквы английского алфавита
Function RandUpperLettersENG(LenLetter As Integer)
Randomize
RandUpperLettersENG = Space(LenLetter)
For iCount% = 1 To LenLetter
Mid(RandUpperLettersENG, iCount%, 1) = Chr((Int(65 + (Rnd() * 26))))
Next
End Function |