Login

Fancade Wiki

Updated Random.md (markdown)

... ...
@@ -1,5 +1,19 @@
1
Outputs a random number in the [Min,Max) interval.
2
Includes min value and excludes max value.
3
I.e. Random(0,1), can get 0 and all numbers between 0 and 1, but not 1.
1
A number randomizer.
4 2
5
[[/uploads/Random.png]]
... ...
\ No newline at end of file
0
[[/uploads/Random.png]]
1
2
Inputs:
3
4
- Min: The minimum amount the block chooses from.
5
- Max: The maximum amount the block chooses from.
6
7
Outputs:
8
9
- Number: The randomly selected [[number]].
10
11
## Notes
12
- The Min input is included while the Max input is excluded, meaning: I put 0 into the Min input and put 5 into the Max input, the block will still select 0 or any number lower than 5 but not 5.
13
- Note that the output would be in decimal, to avoid this use [[floor]], [[ceiling]], or [[round]] operators.
14
15
## Examples
16
...
... ...
\ No newline at end of file
Fancade Wiki