Random code generator is more flexible