fix rng not being inclusive
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
(
|
||||
(ld r0 5)
|
||||
(:next)
|
||||
(rng r1 0 1 (z? (lds @cout "(1€)\n")) (else? (lds @cout "(::)\n")))
|
||||
(dec r0 (nz? (j :next)))
|
||||
)
|
||||
@@ -0,0 +1,8 @@
|
||||
(
|
||||
(:loop)
|
||||
(frng r0 0.0 1.0)
|
||||
(fcmp r0 1.0
|
||||
(lt? (j :loop))
|
||||
(eq? (lds @cout "OK"))
|
||||
(gt? (lds @cout "OVER!")))
|
||||
)
|
||||
Reference in New Issue
Block a user