meaning that as soon as I pass the generated value, the returned value of the function doesn’t get displayed


You could go with simply creating a function which takes an argument, and return the value for the argument.

Jae (SilbinaryWolf)

(not sure what you mean either, but incase its this simple, worth mentioning0