mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
17 lines
211 B
V
17 lines
211 B
V
module strings
|
|
|
|
//import rand
|
|
|
|
// random returns a random string with `n` characters
|
|
/*
|
|
// TODO
|
|
pub fn random(n int) string {
|
|
buf := vmalloc(n)
|
|
for i in 0..n {
|
|
buf[i] = rand.next()
|
|
}
|
|
return tos(buf)
|
|
}
|
|
*/
|
|
|