Custom Stencil Post Processing Material like Vray WireColor

I’m trying to recreate the below material but cannot work out how to index the colour. What are the “Random R”, “Random B” and “Random G” nodes? What do a search in the material editor to get those? I want a material that imitates Vray wire frame so each object is a different colour.