3 ms·
In K you could do: {x}{`0:"/\\"1?2;x}/1 {x}{...;x}/1 is essentially while(true) {}. `0: writes values to standard output. "/\\"1?2 indexes into a two el
by RodgerTheGreat 12y ago
In K you could do:
{x}{`0:"/\\"1?2;x}/1
{x}{...;x}/1 is essentially while(true) {}.
`0: writes values to standard output.
"/\\"1?2 indexes into a two element array given the result of selecting one random result from the numbers up to but excluding 2.