Skip to content

Commit

Permalink
shuffle test
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Nov 19, 2024
1 parent 720d06e commit 606af28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ getFolderSize(folderPath).then(size => {
});
export const repoSizeLong = await getFolderSize(folderPath);
export const repoSizeMB = Math.trunc(repoSizeLong/1024/1024);

// https://en.wikipedia.org/wiki/Fisher-Yates_shuffle
import shuffle from "https://deno.land/x/shuffle/mod.ts";
console.log(shuffle(["i","ro","ha","ni","ho","he","to"]));

0 comments on commit 606af28

Please sign in to comment.