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. xdev/randomize

ActiveLibrary

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 today

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 30% 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

1829d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ea3f74c8fd5c36497bc518cb4bf11702c883479493b4388d3130c2c1bd66e91?d=identicon)[leminhtamboy](/maintainers/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

[codeception/lib-asserts

Assertion methods used by Codeception core and Asserts module

10456.8M14](/packages/codeception-lib-asserts)[lastzero/test-tools

Increases testing productivity by adding a service container and self-initializing fakes to PHPUnit

2244.0k13](/packages/lastzero-test-tools)

PHPackages © 2026

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