Skip to content

Instantly share code, notes, and snippets.

View xxAROX's full-sized avatar
💭
I may be slow to respond.

Jan Sohn xxAROX

💭
I may be slow to respond.
View GitHub Profile
@svilex
svilex / McpeProxy_README.md
Last active April 22, 2024 08:35
Useful informations about McpeProxy
@Muqsit
Muqsit / WeightedRandom.php
Last active May 16, 2024 22:39
Weighted random in PHP with O(1) runtime complexity (Alias Method)
<?php
declare(strict_types=1);
use pocketmine\utils\Binary; // https://github.com/pmmp/BinaryUtils
use pocketmine\utils\Random; // https://github.com/pmmp/PocketMine-MP/blob/60938c8c9df4bf21d096f142c6579dfad92eb8c2/src/utils/Random.php
/**
* @phpstan-template T
*/