PHP Classes

PHP Random Number Generator: Generate a random string based on Mersenne Twister

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 53%Total: 472 All time: 6,011 This week: 673Up
Version License PHP version Categories
random-number-gen 1.0.0Free For Educatio...5Algorithms, PHP 5, Text processing
Description 

Author

This class can generate a random string based on Mersenne Twister algorithm.

It can generate a random text string of configurable length made of digits or upper and lower case letters.

The class can also include a list of given characters that can be included the generated string.

Picture of Er. Rochak Chauhan
  Performance   Level  
Innovation award
Innovation award
Nominee: 15x

Winner: 4x

 

Example

<?php
require("PhpRandomNumberGenerator.inc.php");
$obj=new PhpRandomNumberGenerator();

$num=$obj->generateNumber();

echo
"<h2>$num</h2>";
?>


  Files folder image Files (2)  
File Role Description
Plain text file PhpRandomNumberGenerator.inc.php Class Main Class
Accessible without login Plain text file example.php Example Example File

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:472
This week:0
All time:6,011
This week:673Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:2294