PHPackages                             frank-houweling/weighted-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. frank-houweling/weighted-random

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

frank-houweling/weighted-random
===============================

Library for generating a weighted random sample

1.0.1(6y ago)32.2k↓50%MITPHP ^7.3

Since Jul 27Compare

[ Source](https://github.com/FrankHouweling/weighted-random)[ Packagist](https://packagist.org/packages/frank-houweling/weighted-random)[ RSS](/packages/frank-houweling-weighted-random/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/FrankHouweling/weighted-random).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

2487d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.0.1PHP ^7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/42c315e5352f108b29dba2668493c5a3212d5fd3fa01f5fc2b4767894492be2c?d=identicon)[FrankHouweling](/maintainers/FrankHouweling)

---

Tags

randomphpweightedsampling

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/frank-houweling-weighted-random/health.svg)

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

###  Alternatives

[ihor/nspl

Non-standard PHP library (NSPL) - functional primitives toolbox and more

381368.5k](/packages/ihor-nspl)[gladcodes/keygen

A fluent PHP random key generator.

119668.9k2](/packages/gladcodes-keygen)[savvot/random

Deterministic pseudo-random generators library with dozens of useful functions and several sources of randomness

21243.7k5](/packages/savvot-random)[orangesoft/throttler

Load balancer between nodes.

1732.3k1](/packages/orangesoft-throttler)[sinergi/token

PHP library to generate random strings

188.7k9](/packages/sinergi-token)

PHPackages © 2026

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