Object Info returns 0. Random materials for different objects
I found the mistake myself. The object info values are only applied once the scene gets rendered. Therefore I could not see any changes myself in the editor.