I have a JS function that generates a random number that is inserted into the web3js function as a parameter. I have the following questions:
1) Is it possible for people to decode that input parameter and see the number?
2) Is it possible to interfere with the JS script and inject a false number (though it will be failed, cause it verifies the number with the one stored on Ethereum).
3) What would be the safest way to generate a random number in the frontend and pass it to Ethereum?