Here how you use `randi`

Docs says that `randi()`

returns value between 0 and N (where N is smaller than 2^32 -1).

reminder operator `a % b`

return c that is between 0 and b

so `var r = randi() % 20`

is number between 0 and 20

if you add `10`

to it - `var r = (randi() % 20) + 10`

it becomes number between 10 and 30 ( 0 + 10 and 20 + 10)

To get random integer from some range you could use this function

```
func random_int(min_value,max_value, inclusive_range = false):
if inclusive_range:
max_value += 1
var range_size = max_value - min_value
return (randi() % range_size) + min_value
```