Nix function from string to pseudorandom integer

Or: Load balancing remote builders with pseudorandom numbers.