Computer method for pseudo-random codes generation