Here we demonstrate a simple protocol to create a random mutant library for a given target sequence. We show how this method, which is performed in vivo in Escherichia coli, can be coupled with functional selections to evolve new enzymatic activities.