How to create random value field based on the input of another field?