library gachagacha
Gacha-Gacha is an implementation of weighted randomization in PHP.
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
Gacha-Gacha
, (*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)
dev-master
9999999-dev
Gacha-Gacha is an implementation of weighted randomization in PHP.
Sources
Download
MIT
The Requires
The Development Requires
by
Kohei Onodera
1.0.0
1.0.0.0
Gacha-Gacha is an implementation of weighted randomization in PHP.
Sources
Download
MIT
The Requires
The Development Requires
by
Kohei Onodera