1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

V 0.0.12 open-source release

This commit is contained in:
Alexander Medvednikov
2019-06-22 20:20:28 +02:00
commit d32e538073
43 changed files with 12573 additions and 0 deletions

14
rand/rand.v Normal file
View File

@@ -0,0 +1,14 @@
module rand
#include <time.h>
// #include <stdlib.h>
fn seed() {
# time_t t;
# srand((unsigned) time(&t));
}
fn next(max int) int {
# return rand() % max;
return 0
}