I'm stupid and i need help with references

Ok i understand. But, is this a “wrong” way to do it?
The reason why i ask is because i’ve stumbled on a bunch of moments where i want to get random variables from random stuff.

And this seems to be the way i can get it to work. Is it a slow way to do or am i going to get error’s in the future?

Btw, THANKS AGAIN for that quick reply!