Random algorithms