mirror of
https://github.com/irmen/prog8.git
synced 2024-08-21 12:29:02 +00:00
28 lines
538 B
Lua
28 lines
538 B
Lua
%import textio
|
|
%import floats
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
sub start() {
|
|
float f1
|
|
|
|
floats.rndseedf(-1.2345)
|
|
txt.spc()
|
|
floats.print_f(floats.rndf())
|
|
txt.spc()
|
|
floats.print_f(floats.rndf())
|
|
txt.spc()
|
|
floats.print_f(floats.rndf())
|
|
txt.nl()
|
|
|
|
floats.rndseedf(1.2345)
|
|
txt.spc()
|
|
floats.print_f(floats.rndf())
|
|
txt.spc()
|
|
floats.print_f(floats.rndf())
|
|
txt.spc()
|
|
floats.print_f(floats.rndf())
|
|
txt.nl()
|
|
}
|
|
}
|