Where should I put this function?

I have two scripts a manager script and a board piece script.

Should I have my board pieces hold a dice function (which gets the number of spaces to move), or should my manager have this function and it send the amount to move to the pieces script?
Both ways work I just want to know if one is more accurate then the other or does it not matter?

I think it would be better to have the piece hold it so its easier to code the piece actually moving

If you’re going to use the dice for more than just moving the pieces I would say put it in the manager. Otherwise putting it in the piece script will work just fine.