Guest User

Untitled

a guest
Feb 4th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. function Randomstring(strLen: Integer): string;
  2. var
  3. ID: string;
  4. begin
  5. ID := 'QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890';
  6. Result := '';
  7. Repeat
  8. Result := Result + ID[Random(Length(ID)) + 1];
  9. until (Length(Result) = strLen)
  10. end;
Add Comment
Please, Sign In to add comment