blob: 5bce9373641de5005fb513f1a5800f57509d01ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import gleam/int
import gleam/io
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)
}
|