randomart
Implementation of RandomArt based on the algorithm described in Hash Visualization: a New Technique to improve Real-World Security and Andrej Bauer's original program.
To get started, make sure you have cabal installed. Cabal comes with GHCup, which you can download here. Then clone and run:
git clone https://github.com/jamesma100/randomart.git
cd randomart
cabal run randomart -- [-d <depth>] [-p <pixels>] [-o <filepath>] [-s <seed>]
where
<depth>: depth of randomly generated AST used to render your image<pixels>: width/height of the image, e.g. 200 means 200x200 pixels. Currently only square images are supported.<filepath>: path of image to be saved, e.g. "my_img.png"<seed>: most important part, any random string to initialize the random number generator
For example:
cabal run randomart -- -d 30 -p 200 -o ./my_img.png -s its-2025-and-the-world-is-ending
Then open ./my_img.png. You can alter the seed and depth to generate different images.



