animation nodes random color setup not working
Found a solution but it only works in the render view.

Inside the cycles material I just had to plug the vertex color in the color on the material using the attribute node (input/attribute) and it works!!!