Share your repls and programming experiences

← Back to all posts
Die Roller (Simple Prototype)
akioyuushyahiro (0)

Very simple die roller that generates individual and summation values for a user-inputted number of dice with a user-inputted amount of sides. Very simple RNG system intending to precisely replicate the RNG of tabletop RPG's.

Commentshotnewtop
Highwayman (388)

Just a suggestion: use the <random> header, it gives you better random numbers and unbiased ranges in comparison to rand() and using a mod op. I like how you add it and stuff though, cool project. :)

Highwayman (388)

@akioyuushyahiro god damn that was fast. I feel like I should be thanking you now! XD. happy coding and yw/ty.