You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2024. It is now read-only.
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