Create Random function

Dependency is the control bit here.