1
2
function getRandom(min, max) {
if (!min) {
Helper function to obtain a number inside a given range (extremes inclusive) and if no maximum value is specified, it returns a value between 0 and the value specified; lastly, if no arguments were given, it returns 0 and logs an error message ─ This snippet is a piece of a JavaScript library I'm working on, you can see it here: https://github.com/luishendrix92/WindowbirdJS
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.