add bins and alternatives

This commit is contained in:
JOLIMAITRE Matthieu 2024-06-18 03:52:40 +02:00
parent a935bb9893
commit 9f3594e0d3
21 changed files with 210 additions and 10 deletions

6
data/home/.local/bin/choose.ts Executable file
View file

@ -0,0 +1,6 @@
#!/bin/env -S deno run
const args = Deno.args;
const { floor, random } = Math;
const index = floor(random() * args.length);
console.log(args[index]);