Casino

Casino is a cell based esoteric programming language that utilizes a psuedo random number generator to determine which command will be run. It was created by User:Bluswimmer in 2017.

Language Overview
The language only uses two characters: "$" and linefeed. No other characters may be in the program, or else the interpreter will refuse to run the program.

When the interpreter starts, the seed of the pseudo random number generator is set to 25214903917 so that programs will always be run consistently. The user is asked to input the filename with their code in it and any program input. The interpreter then begins reading the code line-by-line.

For each "$" in a line, the seed is set to (seed ^ 0x5DEECE66DL) & ((1L << 48) - 1). Once the end of the line is reached, the current seed is added to a seed list.

Once the interpreter has successfully read through the entire program, it will now attempt to execute the program. The interpreter loops through every seed in the seed list, and runs a command based on the result of (seed & 0b111).

CAT Program
$ $$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$ $$$$$$$$$$ $ $$$$ $$$$$$$$$