Random.fraction() vs Math.random()

I’m curious if anyone has experience with random.fraction vs Math.random() on the server (no need to account for browser differences in your response) as I’m using Math.random() now for a dice game’s random dice rolls. Is there any benefit to using random.fraction instead?

You can probably answer that for yourself by reading the source for Random:

and comparing with: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random

1 Like

0 inclusive! That’s friggin’ fantastic, lol.