Comments (4)
We should probably mention that you need to seed it with something that is not the time. The time is always the same in the playground.
from tour.
This is not good :( , it confuse lots of people. If the time is kept constant, it has to be notified somehow to an end user or at least when they use "time" package in playground.
from tour.
From the page you linked:
Note: the environment in which these programs are executed is deterministic, so each time you run the example program rand.Intn will return the same number. (To see a different number, seed the number generator; see rand.Seed.)
from tour.
https://go-review.googlesource.com/c/44931/ @adg
from tour.
Related Issues (20)
- tour: [REPLACE WITH SHORT DESCRIPTION]
- tour: Go lang tour
- tour: [REPLACE WITH SHORT DESCRIPTION]
- tour: The range form of the for loop iterates over array as well
- tour: [REPLACE WITH SHORT DESCRIPTION]
- tour: math.Pi should be pascal case not camel case in the tour
- tour: Switch evaluation order typo in sentence
- tour: Structs information
- Add Russian to the tour
- tour: function values
- tour: Incorrect slice capacity after appending? HOT 1
- tour: Suggestion: Add a page or two for how to do enums the Go way (for devs coming from other languages)
- tour: Pointers receivers HOT 1
- https://go.dev/tour/moretypes/26 error HOT 1
- tour: typo in code snippet HOT 1
- tour: Struct literals example is confusing
- tour: A variable of interface type can hold any value that implements those methods.
- tour: [REPLACE WITH SHORT DESCRIPTION]
- tour: Link from `1/14` to menu
- tour: [REPLACE WITH SHORT DESCRIPTION]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tour.