mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
266 B
V
11 lines
266 B
V
import rand
|
|
|
|
const (
|
|
my_random_letter_const = u8(65) + (rand.u8() % 26)
|
|
)
|
|
|
|
fn test_rand_is_initialized_before_main() {
|
|
eprintln('random letter: ${my_random_letter_const.str()} | ASCII code: ${my_random_letter_const}')
|
|
assert my_random_letter_const.is_capital()
|
|
}
|