A simple example showing an algorithm for creating numbers that appear random. Input a seed to create random numbers. The "Random Numbers" list gives you the raw numbers you generated. The "#Sorted" list tells you the amount of each number (1-5) The top line of pixels shows a visualization of your numbers set. The graph in the corner shows the amount of each number graphically.
I might use this for a world generation script... Feel free to use this engine with credit.