This would be the knucklebones dating back to the Palaeolithic Age. The bones were the predecessor of the dice which were invented after that. It’s very likely that gambling existed long before recorded history began.