PHPackages                             lamansky/secure-shuffle - 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. lamansky/secure-shuffle

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

lamansky/secure-shuffle
=======================

Reorders array elements using cryptographically-secure randomization.

1.0.0(5y ago)115.9k↓50%1MITPHPPHP &gt;=7.1.0

Since Aug 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lamansky/secure-shuffle)[ Packagist](https://packagist.org/packages/lamansky/secure-shuffle)[ Docs](https://github.com/lamansky/secure-shuffle)[ RSS](/packages/lamansky-secure-shuffle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

SecureShuffle
=============

[](#secureshuffle)

A PHP library for reordering array elements using cryptographically-secure randomization.

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

[](#installation)

With [Composer](http://getcomposer.org) installed on your computer and initialized for your project, run this command in your project’s root directory:

```
composer require lamansky/secure-shuffle
```

Requires PHP 7.1 or above.

Examples
--------

[](#examples)

The library makes 4 functions available for import. Here is an example with all four functions in use:

```
