Skip to content

Commit 5c7da17

Browse files
authored
Clarify that Random:NextNumber can return zero
Found this out using the hard way.
1 parent f3c6051 commit 5c7da17

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/en-us/reference/engine/datatypes/Random.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ methods:
5555
summary: |
5656
Returns a pseudorandom number uniformly distributed over `[0, 1]`.
5757
description: |
58-
Returns a pseudorandom number uniformly distributed over `[0, 1]`.
58+
Returns a uniform pseudo-random real number in the range of 0 to 1,
59+
inclusive.
5960
parameters:
6061
returns:
6162
- type: number
@@ -67,7 +68,8 @@ methods:
6768
summary: |
6869
Returns a pseudorandom number uniformly distributed over `[min, max]`.
6970
description: |
70-
Returns a pseudorandom number uniformly distributed over `[min, max]`.
71+
Returns a uniform pseudo-random real number in the range of `min` to
72+
`max`, inclusive.
7173
parameters:
7274
- name: min
7375
type: number

0 commit comments

Comments
 (0)