Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
329 B
Text
13 lines
329 B
Text
export default shuffler(Math.random);
|
|
|
|
export function shuffler(random) {
|
|
return function shuffle(array, i0 = 0, i1 = array.length) {
|
|
let m = i1 - (i0 = +i0);
|
|
while (m) {
|
|
const i = random() * m-- | 0, t = array[m + i0];
|
|
array[m + i0] = array[i + i0];
|
|
array[i + i0] = t;
|
|
}
|
|
return array;
|
|
};
|
|
}
|