Password
[EroTweet.git] / class / random.php
blobcdf5ee2e20a59dfc2008d575da3376bceb65f560
1 <?php
2 class Random{
3 public static function randomAlphaNumet($len){
4 $rand_string = "";
5 $opt_str = "1234567890qwertyuiopasdfghjklzxcvbnmZXCVBNMASDFGHJKLQWERTYUIOP";
6 $options = str_split($opt_str);
7 $max = mb_strlen($opt_str) - 1;
8 for($char = 0 ; $char < $len ; $char++){
9 $rand_string .= $options[rand(0, $max)];
11 return str_replace("/", "5", str_replace("=", "2", $rand_string));