Test Driven Development (TDD) in a nutshell

Formally, TDD means Test Driven Development but in your day by day means "to write tests before your main code". Let's use our random function example to explain TDD steps.