use queryselector to vhange a value code example
Example: javascript querySelector change input value
var element = document.getElementById('element_id');
element.value = 'random_value';
var element = document.getElementById('element_id');
element.value = 'random_value';