{"version":"1.0","type":"rich","title":"Dice Library","description":"This example presents a \"Dice Library\" as a plain HTML page with a title and minimal styling, but all interaction occurs in the browser console. The code defines seven dice-rolling functions—`d2`, `d4`, `d6`, `d8`, `d10`, `d12`, and `d20`—each returning a random integer within its respective range. Each function uses a Fisher–Yates shuffle algorithm to randomly reorder an array of sequential numbers and then extracts the first element, adding one to yield a 1-based result. The functions are exposed via a module pattern, allowing console users to call them directly, such as `roll.d20()`, to simulate dice rolls without any visual output.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-27b2a6b92b84b8453d51813a70128cce?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}