Green’s Dictionary of Slang

candy adj.2

[? resemblance to transparent boiled sweets]

[late 19C] (US Und.) of dice, transparent.