<?php
function GeraHash($qtd){
//Under the string $Caracteres you write all the characters you want to be used to randomly //generate the code.
$Caracteres = ‘ABCDEFGHIJKLMOPQRSTUVXWYZ0123456789’;
$QuantidadeCaracteres = strlen($Caracteres);
$QuantidadeCaracteres–;