How do you generate a random value from between two values of my choosing? So, for example, I want to generate random evenly distributed values from between, say -.5 and 7? what is the node setup to achieve this?
Thanks JK
How do you generate a random value from between two values of my choosing? So, for example, I want to generate random evenly distributed values from between, say -.5 and 7? what is the node setup to achieve this?
Thanks JK
Duarte Farrajota Ramos came up with a better suggestion with the Object Info > Random value. Then you just run it into a standard linear interpolation function t*(a-b)+b
. If you're feeding in random numbers 0..1 it does not matter whether a<b or a>b. You still get a value in the range a..b.
The extra nodes at the bottom with the vector coordinate going into the noise texture will give you a solid color, but it will be identical on all objects that use that material.