Programming
Python
R
Java
C
C++
C#
WEB
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
MORE
Examples1
Python
GO
R
Java
C
C++
C#
Examples2
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Seo Tools
Code Minifier
Code Beautifier
Language Compiler
Misc Tools
File Converter
References
C
C++
Python
Java
PHP
JavaScript
Examples
Python
R
Java
C
C++
C#
HTML
CSS
JavaScript
BootStrap4
jQuery
SVG
Home
About
Contact
JetPack
Multi Themes-->>
Code it ALL
Scroll TOP
Generate a Random Number in go - CodeGK
Δ Go Examples
Examples
Hello world in go
Add Two Numbers in go
Find the Square Root in go
Swap Two Variables in go
Generate a Random Number in go
Find ASCII Value of Character in go
♦ Generate a Random Number in go
♣ Example1: Generate a Random Number in go
Input:
Run CODE
Reload Code
Copy Code
package main import ( "fmt" "math/rand" ) func main() { fmt.Print(rand.Intn(100)) fmt.Println() fmt.Print(rand.Intn(100)) fmt.Println() fmt.Print(rand.Intn(100)) fmt.Println() }
Output: