Decide randomness once and for all

This commit is contained in:
able 2023-09-08 09:39:08 -05:00
parent 13437e49bc
commit 2c2322bb6c
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,7 @@
var std = include "std";
var print = std.print;
func main(){
var arr = [123, 456, 789];
print(arr[1]);
}

View file

@ -0,0 +1,6 @@
var rand = include "rand";
var rd64 = rand.random_u64;
func main(){
var abc = rd64();
}

View file

@ -0,0 +1,4 @@
func random_u64(){
// TODO: randomness
return 3;
}