Login

Fancade Wiki

Replaced background color for consistency

... ...
@@ -15,14 +15,14 @@ Outputs:
15 15
- The Min input is included while the Max input is *excluded*, meaning: if the min and max inputs are 0 and 5 respectively, it may generate a number within 0 to 5, possibly 0, but never 5.
16 16
- The random block will generate a new value every time it is executed. To reuse the same random value, it should be stored in a variable.
17 17
- Note that the output would be in decimal, to avoid this use [[floor]], [[ceiling]], or [[round]] operators.
18
- The random block behaves inconsistently when used with [[wire splits]]. [[/uploads/inconsistent-random.jpg]]
18
- The random block behaves inconsistently when used with [[wire splits]]. [[/uploads/inconsistent_random.png]]
19 19
20 20
## Examples
21 21
22 22
Either generate -1 or 1:
23 23
24
[[/uploads/Screenshot_2020-06-23-23-24-42-333_com.martinmagni.fancade.png]]
24
[[/uploads/random_example1.png]]
25 25
26 26
-----
27 27
28
[[/uploads/Screenshot_2023_0327_105551.png]]
29 28
+[[/uploads/random_example2.png]]
Fancade Wiki