mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-30 16:48:40 +00:00
7de3d4be2b
This adds support for the math/rand package.
16 lines
239 B
Go
16 lines
239 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"math/rand"
|
|
"os"
|
|
)
|
|
|
|
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())
|
|
}
|