A number of programming languages have no built-in way to generate random numbers. How are we able to include these languages in a challenge requiring random output?
\$\begingroup\$
\$\endgroup\$
6
-
\$\begingroup\$ Could you provide examples of such languages please? \$\endgroup\$– Shaun BebbersCommented Aug 12, 2019 at 21:50
-
1\$\begingroup\$ @ShaunBebbers BF \$\endgroup\$– AdámCommented Aug 12, 2019 at 21:51
-
\$\begingroup\$ I'd wager that most esolangs don't support randomness, and most of those that do are ones with random behavior in core features of the language. The largest class of exceptions would probably be the golflangs, but even within the golflangs there's not perfect support for randomness: Husk is purely functional, and omits any random builtins on principle. \$\endgroup\$– Unrelated StringCommented Aug 12, 2019 at 23:51
-
\$\begingroup\$ Related: codegolf.meta.stackexchange.com/questions/15025/… \$\endgroup\$– wastlCommented Aug 13, 2019 at 2:44
-
\$\begingroup\$ Random Brainfuck \$\endgroup\$– Jo King ModCommented Aug 13, 2019 at 14:22
-
\$\begingroup\$ Possible dupe of codegolf.meta.stackexchange.com/q/17128/45941 \$\endgroup\$– user45941Commented Aug 15, 2019 at 2:03
Add a comment
|
1 Answer
\$\begingroup\$
\$\endgroup\$
1
We don't
The unfortunate fact is that not every language can answer every challenge. I can't answer most, if not all, file-system challenges using Jelly, as it doesn't have the capacity to read files. And that's fine. If a language is unable to produce a random number in a valid way according to our rules, then it cannot compete in a random challenge.
-
\$\begingroup\$ Given that no answer's have been posted yet, I thought turning my comment into a full answer would be good \$\endgroup\$– caird coinheringaahin g ModCommented Aug 13, 2019 at 20:10