Default How to create root

I want to know how to create root from scratch for any android device?