To elaborate further, some of them learned what they must do (leukocytes) randomly. 
Literally, we have a process through which we can create around 10^11 different leukocytes and we obtain this at random by changing and cutting pieces of the DNA that codify for certain proteins. 

We are a perfect machine literally based on randomness