diff options
Diffstat (limited to 'test/rng.tm')
| -rw-r--r-- | test/rng.tm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/rng.tm b/test/rng.tm index fe3d9f75..1814d583 100644 --- a/test/rng.tm +++ b/test/rng.tm @@ -12,23 +12,23 @@ func main(): >> rng:int(1, 1000) = 921 >> rng:int64(1, 1000) - = 324 : Int64 + = Int64(324) >> rng:int32(1, 1000) - = 586 : Int32 + = Int32(586) >> rng:int16(1, 1000) - = 453 : Int16 + = Int16(453) >> rng:int8(1, 100) - = 53 : Int8 + = Int8(53) >> rng:byte() - = 0xDC : Byte + = Byte(0xDC) >> rng:bytes(10) - = [0xA0, 0x5A, 0x10, 0x3F, 0x6C, 0xD1, 0x35, 0xC2, 0x87, 0x8C] + = [:Byte, 0xA0, 0x5A, 0x10, 0x3F, 0x6C, 0xD1, 0x35, 0xC2, 0x87, 0x8C] >> rng:bool(p=0.8) = yes >> rng:num() - = 0.03492503353647658 : Num + = 0.03492503353647658 >> rng:num32(1, 1000) - = 761.05908 : Num32 + = Num32(761.05908) !! Random array methods: >> nums := [10*i for i in 10] |
