Jump to content
YOUR-AD-HERE
HOSTING
TOOLS
992Proxy

Locked Funcion RND "Cadena Aleatoria" [By Pink]


Expermicid

Recommended Posts

[lenguaje=delphi]{Delphi Version: 7.2

Author..........: Pink

Script Function...: Random String

Uso..............: RND(largo de cadena en numero)

Ejemplo: showmessage(RND(200)); }

 

 

Function RND(len: integer): string;

var

cadena:string;

Ram:integer;

x:integer;

 

begin

cadena:='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyz$%&[]\()*+,@-./0123456789:;<=>?^_`‡¶€„…†‡ˆ‰Š‹Œ1Ž1?‘’“•–—˜™š›œ1žŸ¡¢£¤¥¦§¨©ª«¬1®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑ ÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ';

for x:=1 to len do

begin

Ram:=random(213)+1;

Result:=Result+cadena[Ram];

end;

end; [/lenguaje]

Edited by Expermicid
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.