Code for random / algorithmics graphics