{"version":"1.0","type":"rich","title":"javascript get random int","description":"This example demonstrates a compact JavaScript function for generating a random integer within a specified range. The code defines `getRandomInt(min, max)`, which uses the native `Math.random()` and `Math.floor()` APIs to compute the result. It shows how to scale the random decimal output to the desired inclusive minimum and exclusive maximum bounds. The function is immediately usable in any browser environment without external libraries, making it a practical utility for simulations or data generation.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-f35518a3809d9b34ed93?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}