Add strict version of randportn