mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
all: support interface asserts in interp
This adds support for the math/rand package.
This commit is contained in:
committed by
Ron Evans
parent
02ecab833f
commit
7de3d4be2b
Vendored
+3
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/rand"
|
||||
"os"
|
||||
)
|
||||
|
||||
@@ -9,4 +10,6 @@ func main() {
|
||||
fmt.Println("stdin: ", os.Stdin.Fd())
|
||||
fmt.Println("stdout:", os.Stdout.Fd())
|
||||
fmt.Println("stderr:", os.Stderr.Fd())
|
||||
|
||||
fmt.Println("pseudorandom number:", rand.Int31())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user