Skip to content

Instantly share code, notes, and snippets.

Avatar
👋
hey!

Mike Valeriano mkvlrn

👋
hey!
View GitHub Profile
View embaralhado.ts
/* eslint-disable @typescript-eslint/naming-convention */
const deck = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]
const response = 21
function shuffle(a: number[]) {
const deck_a: number[] = []
const deck_b: number[] = []
const deck_c: number[] = []