What is the origin of the phrase rolling them bones?

The first dice were actual six-sided knuckle bones, used by Roman legionnaires circa 6th. century.