PHPackages                             stratadox/random - 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. stratadox/random

ActiveLibrary

stratadox/random
================

Simple random generator abstraction

v0.1(5y ago)07MITPHPPHP ^7.2

Since Feb 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Stratadox/Random)[ Packagist](https://packagist.org/packages/stratadox/random)[ RSS](/packages/stratadox-random/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Random
======

[](#random)

[![Github Action](https://github.com/Stratadox/Random/workflows/Github%20Action/badge.svg)](https://github.com/Stratadox/Random/actions)[![codecov](https://camo.githubusercontent.com/dd2dd9e253aa7b12e20b39b739e0b60a6bfb40e5cc8dc8745da08e87fbec9403/68747470733a2f2f636f6465636f762e696f2f67682f537472617461646f782f52616e646f6d2f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/Stratadox/Random)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6e85b20fcf8c44a97ede6a117d672468f437762aed386a7e3de4065fa2a5e984/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f537472617461646f782f52616e646f6d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/Stratadox/Random/?branch=main)[![Latest Stable Version](https://camo.githubusercontent.com/d304a39177308b8352e100040f993a870de4a7952f176659d950435ccba30c3e/68747470733a2f2f706f7365722e707567782e6f72672f737472617461646f782f72616e646f6d2f762f737461626c65)](https://packagist.org/packages/stratadox/random)[![License](https://camo.githubusercontent.com/c48713d297dc1a46b3582cb5f53e54f3829840646827a926c629c41d284d32d1/68747470733a2f2f706f7365722e707567782e6f72672f737472617461646f782f72616e646f6d2f6c6963656e7365)](https://packagist.org/packages/stratadox/random)

Simple random generator abstraction.

Installation
------------

[](#installation)

Install with: `composer install stratadox/random`

Why use this
------------

[](#why-use-this)

Code that involves random is tricky to test. Using this package, you can inject an IntegerGenerator. In the production setup, you inject the RandomIntegerGenerator. By injecting a PredefinedIntegerGenerator during testing, you can test the code for one or more predefined outcomes of the IntegerGenerator.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1920d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stratadox-random/health.svg)

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

PHPackages © 2026

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