random() {
        if(!this.size) {
            return undefined;
        }
        return Array.from(this.values())[Math.floor(Math.random() * this.size)];
    }
/**
    * Get a random object from the Collection
    * @returns {Class?} The random object, or undefined if there is no match
    */
Get a random object from the Collection
@returns {Class?} The random object, or undefined if there is no match
Get a random object from the Collection @returns { Class? } The random object or undefined if there is no match
random() {
        if(!this.size) {
            return undefined;
        }
        return Array.from(this.values())[Math.floor(Math.random() * this.size)];
    }
random ( ) { if ( ! this . size ) { return undefined ; } return Array . from ( this . values ( ) ) [ Math . floor ( Math . random ( ) * this . size ) ] ; }
Get a random object from the Collection
 @returns {Class?}
Get a random object from the Collection @returns { Class? }