Random Detail material

I kind of made it work.
now i have to find a way of make it random per mesh