π What's all the hullabaloo?
There's now a vastly better alternative to JavaScript's built-in Math.random() that will make your life ea...
For further actions, you may consider blocking this person and/or reporting abuse
This looks quite useful. Given that Math.random() returns a float, what drove your decision to make int the default return type in the numerical instances such as rando(5) and rando(5,10) instead of float? Was it an assumption that most people specifying numbers were looking for ints or something else?
Thanks! That's a great thought. And yes, that's exactly right. I've seen ints as a much more common use case than floats (excluding [0-1)), so I decided to make that the easier of the two. If you have other thoughts on the project, I'm always interested to hear feedback. You can leave a comment here, DM me on here, or create a pull request on my GitHub.
Hot tip, include language after the leading backticks for codeblocks to get food syntax hilighting.
example
result
EDIT π€£ corrected
hot too
tohot tip
food syntax π
Nice tip. Thanks :)
Looks promising! Is this library a pseudorandom one like
Math.random
or is it a true random algorithm?It is using Math.random, just added sugar around it.
Made a ton prototypes long time ago for such tasks
I added this in my reading list looks interesting π±βπβ€
Amazing! I'll study in how to implement it into my projects. Thank you
It's been getting some attention, so I upgraded it to a cryptographically secure random now. Thanks for being interested in it from the start.
Just love the design of the website <3. The combination of sparseness, clarity and slight aliveness/animation is awesome! randojs.com/
thanks a bunch!!
Cool !
I had also created a tiny lib for generating random stuff ( integers, floats, hex colors, shuffling an array, unique IDs, etc. ) for personal use. its called kram.js
github.com/rwbeast/kram
Good work! I might use this in a future project.
Very nice work!
Very good! randoSequence () is excellent! / Muito bom! randoSequence() Γ© excelente!
I think I could use this sometime... Thanks!
@nastyox
You literally get a domain name to host a website for this project π.
I think you have better plans for Rando.js.
thanks!!!!
If you want an entire replacement of the math std library, I am a bit of a fanboy about this one. mathjs.org/
FYI: github.com/marak/Faker.js/