Random Colours On Cake Decoration

I think you can use Custom Primitive Data
Storing Custom Data in Unreal Engine Materials Per-Primitive | Unreal Engine 5.3 Documentation