Decide randomness once and for all
This commit is contained in:
parent
13437e49bc
commit
2c2322bb6c
7
assets/examples/array.rhea
Normal file
7
assets/examples/array.rhea
Normal file
|
@ -0,0 +1,7 @@
|
|||
var std = include "std";
|
||||
var print = std.print;
|
||||
|
||||
func main(){
|
||||
var arr = [123, 456, 789];
|
||||
print(arr[1]);
|
||||
}
|
6
assets/examples/rand.rhea
Normal file
6
assets/examples/rand.rhea
Normal file
|
@ -0,0 +1,6 @@
|
|||
var rand = include "rand";
|
||||
var rd64 = rand.random_u64;
|
||||
|
||||
func main(){
|
||||
var abc = rd64();
|
||||
}
|
4
assets/libraries/rand/rand.rhea
Normal file
4
assets/libraries/rand/rand.rhea
Normal file
|
@ -0,0 +1,4 @@
|
|||
func random_u64(){
|
||||
// TODO: randomness
|
||||
return 3;
|
||||
}
|
Loading…
Reference in a new issue