Skip to content

Commit 5ab4b41

Browse files
authored
Merge pull request #285 from arduino/SimonePDA-patch-3
Update random.adoc
2 parents 419578a + 8c3bf7d commit 5ab4b41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Language/Functions/Random Numbers/random.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,7 @@ If it is important for a sequence of values generated by `random()` to differ, o
8686

8787
Conversely, it can occasionally be useful to use pseudo-random sequences that repeat exactly. This can be accomplished by calling `randomSeed()` with a fixed number, before starting the random sequence.
8888

89+
The `max` parameter should be chosen according to the data type of the variable in which the value is stored. In any case, the absolute maximum is bound to the `long` nature of the value generated (32 bit - 2,147,483,647). Setting `max` to a higher value won't generate an error during compilation, but during sketch execution the numbers generated will not be as expected.
90+
8991
--
9092
// HOW TO USE SECTION ENDS

0 commit comments

Comments
 (0)