Random Algorithmic exercises