Some random algorithms