A dice roller looks like a one-line project:

const value = Math.floor(Math.random() * 6) + 1;

Enter fullscreen mode

Exit fullscreen mode

That line is enough to draw a number from 1 through 6. It is not enough to make a useful probability tool.