public function scopeRandomize($query, $seed = false)
    {
        if ($seed === true) {
            $seed = Session::getId();
        }

        if ($seed) {
            return $query->orderBy(DB::raw('RAND("'.$seed.'")'));
        }

        return $query->orderBy(DB::raw('RAND()'));
    }