Value wise Random color for different array

For one button click action I am getting two JSON/table data from different source with a unique value. The table one is like follows

  ID  |  Name  |  Value
=========================
  01  |   X    |    1    
-------------------------
  02  |   Y    |    2    
-------------------------
  03  |   Z    |    3    
-------------------------

And the table two is alike follows

  ID  |  Place  |  Score
=========================
  01  |   a    |    10    
-------------------------
  02  |   b    |    20    
-------------------------
  03  |   c    |    30    
-------------------------

There is a distinct unique value in both table (i.e. ID). This two table will be shown individually. but the color should be same for both ID 01. Sometimes the table returns more than 100 values.