PHPackages                             xdev/randomize - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. xdev/randomize

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xdev/randomize
==============

Support random number, string, array, list

1.0.1(5y ago)139[1 PRs](https://github.com/kiralee/xdev-randomize/pulls)MITPHPPHP &gt;= 7.3

Since Mar 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kiralee/xdev-randomize)[ Packagist](https://packagist.org/packages/xdev/randomize)[ RSS](/packages/xdev-randomize/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Randomize package
=================

[](#randomize-package)

This package will random number, string and element in the specific array.

Requirements
------------

[](#requirements)

### PHP &gt;= 7.3

[](#php--73)

### Composer &gt; 1.0

[](#composer--10)

How to use
----------

[](#how-to-use)

### run by composer

[](#run-by-composer)

```
composer require xdev/randomize

```

### Add package to your code

[](#add-package-to-your-code)

```
use Xdev\Support\Randomize\Random

```

call class **Random** and use static method

Methods
-------

[](#methods)

### randomNumber ($min,$max):int

[](#randomnumber-minmaxint)

   param   type     min   integer     max   integer  It will random number from min to max that using rand function from php default. ### randomString ($length):string    param   type     length   integer  It will random string using using random\_bytes and bin2hex function from php default. ### randomElementInArray ($neededArray):mixed    param   type     neededArray   array  It will random element in needed array. License
-------

[](#license)

MIT

Author
------

[](#author)

Kiden Snapter, Duy Lucas

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1878d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/105349908?v=4)[leminhtamboy](/maintainers/leminhtamboy)[@leminhtamboy](https://github.com/leminhtamboy)

---

Top Contributors

[![kiralee](https://avatars.githubusercontent.com/u/12260120?v=4)](https://github.com/kiralee "kiralee (11 commits)")

### Embed Badge

![Health badge](/badges/xdev-randomize/health.svg)

```
[![Health](https://phpackages.com/badges/xdev-randomize/health.svg)](https://phpackages.com/packages/xdev-randomize)
```

###  Alternatives

[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[jimbojsb/workman

PHP process forking &amp; daemonizing library

608.8k](/packages/jimbojsb-workman)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
