Random tasks implemented for RossettaCode.org