annotate samples/rand.tp @ 253:697c2c562af2

Fix infinite loop in hash dict
author Michael Pavone <pavone@retrodev.com>
date Sat, 31 May 2014 21:27:03 -0700
parents 157cc497a7f1
children
rev   line source
pavone@162 1 #{
pavone@162 2 main <- :args {
pavone@162 3 os srand: (os time)
pavone@162 4 count <- 1
pavone@162 5 if: (args length) > 1 {
pavone@162 6 count <- int32: (args get: 1)
pavone@162 7 }
pavone@162 8 while: { count > 0 } do: {
pavone@162 9 print: (hex: (os rand64)) . "\n"
pavone@162 10 count <- count - 1
pavone@162 11 }
pavone@162 12 }
pavone@162 13 }