2017 © Pedro Peláez
 

library gachagacha

Gacha-Gacha is an implementation of weighted randomization in PHP.

image

onody/gachagacha

Gacha-Gacha is an implementation of weighted randomization in PHP.

  • Thursday, January 22, 2015
  • by onody
  • Repository
  • 0 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Gacha-Gacha

Build Status Coverage Status, (*1)

Description

Gacha-Gacha is an implementation of weighted randomization in PHP.
Gacha-Gacha requires PHP >= 5.3.3., (*2)

Usage

require_once './vendor/onody/gachagacha/src/autoload.php';

$gachagacha = new \GachaGacha\Picker();

$gachagacha->set('Marks',    30.124);
$gachagacha->set('Daniel',   20);
$gachagacha->set('Schuster', 0);

$gachagacha->pick();        // single item
$gachagacha->pick(1000);    // array of items

Install

```json:composer.json {
"require": { "onody/gachagacha": "1.0.0" } }, (*3)


```bash php composer.phar install

Licence

[MIT], (*4)

Author

onody, (*5)

The Versions

22/01 2015

dev-master

9999999-dev

Gacha-Gacha is an implementation of weighted randomization in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Kohei Onodera

22/01 2015

1.0.0

1.0.0.0

Gacha-Gacha is an implementation of weighted randomization in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Kohei Onodera