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

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.

  • \$\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 '19 at 20:10

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