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

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

pixeloution/true-random
=======================

Interface for getting random datra from random.org

1.0.0(12y ago)441.3k4[1 issues](https://github.com/pixeloution/true-random/issues)PHPPHP &gt;=5.3.2

Since Jul 21Pushed 12y ago4 watchersCompare

[ Source](https://github.com/pixeloution/true-random)[ Packagist](https://packagist.org/packages/pixeloution/true-random)[ RSS](/packages/pixeloution-true-random/feed)WikiDiscussions master Synced 4w ago

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

TrulyRandom
===========

[](#trulyrandom)

Composer-compatible library to interact with random.org's API in order to generate truly random lists of integers, sequences of integers, and random alpha-numeric strings.

Random.org does limit the amount of random numbers/strings you can generate in a day, and this program will check your remaining quota before sending requests. If you need more than the free allowance, there are instructions on random.org for purchasing additional.

I have nothing to do with random.org other then thinking its a cool service.

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

[](#installation)

Install via Packagist

```
"require" :
{
  "pixeloution/true-random" : "*"
},

```

in your composer.json file

Set-Up
------

[](#set-up)

```
use Pixeloution\Random\Randomizer;

# takes a partial User Agent as an argument; random.org requests you use your
# email address in case of issues
$generator = new Randomizer( 'name@example.com' );

```

Generate Lists of Integers
--------------------------

[](#generate-lists-of-integers)

Returns an array of non-unique integers between min, max

```
$generator->integers( $minimum_value, $maximum_value, $quantity );

```

Generate A Sequence of Integers
-------------------------------

[](#generate-a-sequence-of-integers)

Returns an array of a integers from $start to $end, each integer appearing once.

```
$generator->sequence( $start, $end );

```

Generate a list of random strings
---------------------------------

[](#generate-a-list-of-random-strings)

Returns an array of strings $length characters long, made up of character types specified via bitwise options. The default value is `ALL ^ UNIQUE`

Options are:

- Randomizer::DIGITS
- Randomizer::UPPERCASE
- Randomizer::LOWERCASE
- Randomizer::UNIQUE
- Randomizer::ALL

Some examples:

```
# returns all strings containing uppercase and lowercase only
$generator->strings( $len, $qty, Randomizer::UPPERCASE | Randomizer::LOWERCASE );

# returns lowercase strings, no repeated letters
$generator->strings( $len, $qty, Randomizer::LOWERCASE | Randomizer::UNIQUE );

# returns uppercase, lowercase, numeric with non-unique charaters. this is the default
$generator->strings( $len, $qty, Randomizer::ALL ^ Randomizer::UNIQUE );

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

4727d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/487337?v=4)[Erik Wurzer](/maintainers/pixeloution)[@pixeloution](https://github.com/pixeloution)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[krizon/php-ga-measurement-protocol

Easy use of the Google Analytics Measurement Protocol in PHP

108587.4k5](/packages/krizon-php-ga-measurement-protocol)[amplifier/yii-amqp

AMQP adapter for Yii

2237.2k](/packages/amplifier-yii-amqp)[baidubce/bce-sdk-php

BCE SDK for PHP

142.6k2](/packages/baidubce-bce-sdk-php)

PHPackages © 2026

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