diff options
| author | BarrOff <58253563+BarrOff@users.noreply.github.com> | 2024-09-15 22:32:48 +0200 |
|---|---|---|
| committer | BarrOff <58253563+BarrOff@users.noreply.github.com> | 2024-09-15 22:32:48 +0200 |
| commit | 9cf060c1d5eff75889095b439f100a17bbb3c5a8 (patch) | |
| tree | 7c9adc432c6ea16022393e9e4391e9faf3ce6182 | |
| parent | 3481abe18527126f6dc8e5a5b548f858201bf70d (diff) | |
| download | perlweeklychallenge-club-9cf060c1d5eff75889095b439f100a17bbb3c5a8.tar.gz perlweeklychallenge-club-9cf060c1d5eff75889095b439f100a17bbb3c5a8.tar.bz2 perlweeklychallenge-club-9cf060c1d5eff75889095b439f100a17bbb3c5a8.zip | |
feat: add solutions for challenge 286 from BarrOff
| -rw-r--r-- | challenge-286/barroff/julia/ch-1.jl | 4 | ||||
| -rw-r--r-- | challenge-286/barroff/raku/ch-1.p6 | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/challenge-286/barroff/julia/ch-1.jl b/challenge-286/barroff/julia/ch-1.jl new file mode 100644 index 0000000000..356e27ce0d --- /dev/null +++ b/challenge-286/barroff/julia/ch-1.jl @@ -0,0 +1,4 @@ +#!/usr/bin/env julia + + +println(rand(split(read(PROGRAM_FILE, String)))) diff --git a/challenge-286/barroff/raku/ch-1.p6 b/challenge-286/barroff/raku/ch-1.p6 new file mode 100644 index 0000000000..3f4502d260 --- /dev/null +++ b/challenge-286/barroff/raku/ch-1.p6 @@ -0,0 +1,9 @@ +#!/usr/bin/env perl6 + +use v6.d; + +#| Print a random word from this script +sub MAIN() { + my $words = $*PROGRAM-NAME.IO.words.Set; + say $words.pick; +} |
