I’m trying to make a generator of night windows and everything seems to work out, but I can’t figure out one moment. How to connect a random seed to the assigned material, so that you can change its purpose to geometry in one click. Do not tell me how to do this?

Here is the scene