Closed
Description
Describe the bug
random.dice return 0 when work with hexadecimal value
To Reproduce
var colors = { first : "0xFFFF00", second : "0x00FFFF", third: "0x0F0F0F", four : "0xF0F0F0"};
var randTint = random.dice(
colors.first, colors.second, colors.third, colors.four
);
console.log(randTint);
Expected behavior
im expected random.dice return hexadecimal value or string, using it for get random color.
i fix it use # for hex color
var colors = { first : "#FFFF00", second : "#00FFFF", third: "#0F0F0F", four : "#F0F0F0"};
now random.dice work with string