How to get a non-trainable random variable?

Thank you so much! it works.