Talk:,,,

From Esolang
Jump to navigation Jump to search

Random Number Generator + Shorter Truth Machine

Do ⫰ and ⫯ always pop some set number (i.e. lowest on the stack first) or do they choose randomly? If it's random, then

0:1⇆⫰+⇆:-+

gives a 50/50 chance for 1 or 0 if there aren't any other 0s in the stack.

Going with the 9999 1s from the main article,

1s?××i

takes the input and multiplies it by the string "111...1", then turns it into an integer. Tetrapyronia (talk) 16:04, 3 September 2020 (UTC)

For the first example, the only retains the smallest possible value in the entire stack (0) while popping everything else. Therefore, the + coming right after will result in an error as there is only one value in the stack. Unfortunately, there is no command in ,,, yet which pops the smallest value.
For the second example, what exactly does the ? represent? --SunnyMoon (talk) 19:37, 3 September 2020 (UTC)
The second example should be 1s9999××i, the ? was how many 1s to output. Thanks for clearing up what does! Tetrapyronia (talk) 02:17, 4 September 2020 (UTC)
The truth-machine should work when the input is 1, but not with 0, as multiplying the string with zero will nullify it. (The TIO interpretation throws an error)
I thought a string times 0 gave an empty string? That's how it works for "test"0i×. There's also something wrong with the interpreter where strings and + don't work properly (The code "a""b"..."z"+ returns an error no matter how many strings are added). Tetrapyronia (talk) 06:40, 5 September 2020 (UTC)