I have pin plugin for vip sales. But these pins are extremely long and difficult. How can I generate 10 letter codes consisting of numbers and letters only? PHP: <?phpnamespace androcyber\utils;class AutomaticPinSystem{ private const LENGTH = "\x31\x30"; public const DAYS = [ "Monday" => "Pazartesi", "Tuesday" => "Salı", "Wednesday" => "Çarşamba", "Thursday" => "Perşembe", "Friday" => "Cuma", "Saturday" => "Cumartesi", "Sunday" => "Pazar" ]; public static function generatePin() : ?string{ try{ return STATIC_PIN_PREFIX . "-" . strtoupper(bin2hex(random_bytes((int) self::LENGTH))); }catch(\Exception $exception){ return static::generatePin(); } } public static function diffTime(int $finish) : string{ $now = new \DateTime(); $finishDateTime = new \DateTime(); $finishDateTime->setTimestamp($finish); $finishDate = new \DateTime((string)$finishDateTime->format('Y-m-d H:i:s')); $remainingTime = $now->diff($finishDate); return $remainingTime->format('%m Ay, %d Gün, %H Saat, %i Dakika, %s Saniye'); }}?> i think private const LENGTH = "\x31\x30"; and return STATIC_PIN_PREFIX . "-" . strtoupper(bin2hex(random_bytes((int) self::LENGTH))); but i dont know how to change this.