PHP Classes

Random Number Generator: Generate random number of a given length

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 179 All time: 8,731 This week: 673Up
Version License PHP version Categories
randomnumber 1.0.0The PHP License5PHP 5, Text processing, Math
Description 

Author

This is a simple class that can generate random number of a given length.

It takes as an optional parameter the length of the number to generate in terms of the number of digits.

The class generates a number with the specified length and returns a string with the generated random number without leading zeros.

Picture of Narmail Sandhu
Name: Narmail Sandhu <contact>
Classes: 1 package by
Country: India India

 

  Files folder image Files (1)  
File Role Description
Plain text file RandomNumber.php Class Class 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:179
This week:0
All time:8,731
This week:673Up