[Script] Generator Random String

Locked
User avatar
! Manticore ♛
Membru
Membru
Posts: 1542
Joined: 8 years ago
Location: New York , SUA
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 27
Status: Offline

7 years ago

Generator Random String

Code: Select all

 function hashGenerator($lungime)
            {
                $caractere = '0123456789abcdef';
                $lungimea = strlen($caractere);
                $cod_aleatoriu = '';
                   
                   for ($i = 0; $i < $lungime; $i++) {
                     $cod_aleatoriu .= $caractere[rand(0, $lungimea - 1)];
               }
                        return($cod_aleatoriu);
       }
Image Image

Image

© ! Manticore ♛

"Many things that seems threatening in the dark,become more welcoming when we shine a light on them."
"Maybe for the world you are just a person,but for a person you are the entire world."
"Nothing is impossible,the word itself says <<I'm Possible>>."
"If the pain will ever speak,then my pain will scream."
''The fastest way to happiness is to avoid the reality."

Image
Locked

Return to “Script-uri”