diff options
| -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; +} |
