mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
261 B
V
11 lines
261 B
V
import rand
|
|
|
|
const (
|
|
my_random_letter_const = byte(65 + rand.u32n(25))
|
|
)
|
|
|
|
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()
|
|
}
|