Simple code for if you need random string character like password, id code and many others. here we go.. function kodeacak(PLen: Integer): string; va…