Renamed 'scripts' directory to 'examples'
Also allowed assignment within conditionals
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
|
||||
var randi: Int = 69420;
|
||||
fn rand() {
|
||||
//a quick and dirty random number generator
|
||||
return randi = randi * 1664525 + 1013904223;
|
||||
}
|
||||
|
||||
print rand();
|
||||
print rand();
|
||||
print rand();
|
||||
Reference in New Issue
Block a user