blob: 288bfb07b5f91ead9d1d91b1722ab78385ac65bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import gleam/io
import gleam/int
pub fn main() {
let result = case int.random(5) {
// Match specific values
0 -> "Zero"
1 -> "One"
// Match any other value and assign it to a variable
other -> "It is " <> int.to_string(other)
}
io.debug(result)
}
|