1
\$\begingroup\$

This question already has an answer here:

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?

\$\endgroup\$

marked as duplicate by pppery, Sriotchilism O'Zaic, Community Aug 15 at 20:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • \$\begingroup\$ Could you provide examples of such languages please? \$\endgroup\$ – Shaun Bebbers Aug 12 at 21:50
  • 1
    \$\begingroup\$ @ShaunBebbers BF \$\endgroup\$ – Adám Aug 12 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 String Aug 12 at 23:51
  • \$\begingroup\$ Related: codegolf.meta.stackexchange.com/questions/15025/… \$\endgroup\$ – wastl Aug 13 at 2:44
  • \$\begingroup\$ Random Brainfuck \$\endgroup\$ – Jo King Aug 13 at 14:22
  • \$\begingroup\$ Possible dupe of codegolf.meta.stackexchange.com/q/17128/45941 \$\endgroup\$ – Mego Aug 15 at 2:03
7
\$\begingroup\$

We don't

The unfortunate fact is that not every language can answer every challenge. I can't answer most, if not all, 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 challenge.

\$\endgroup\$
  • \$\begingroup\$ Given that no answer's have been posted yet, I thought turning my comment into a full answer would be good \$\endgroup\$ – caird coinheringaahing Aug 13 at 20:10

Not the answer you're looking for? Browse other questions tagged .