Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Thank you!)
Thank you! 😉
Golang translation 🕖🕜🕧
I've added a translation to another kata. Could you take a look at it? I don't know who can approve translations. Would you approve it?
Thank you very much for the explanation. I have already familiarized myself with the Go documentation and now know a bit more about working with the "math/rand" package :)
I removed the rand.Seed() function because the documentation says that the function is deprecated, verbatim:
Link: https://pkg.go.dev/math/rand#Seed
Also, could you tell me what the Preloaded tab is for?
Could you please help me understand the rand.Seed(time.Now().UnixNano()) function? I have run some tests locally without using this function. I called rand.Intn(50) 10 times in a loop and each time I ran the programme I got a different set of numbers. In this case, I can't understand why forums recommend using the current time to get different sets of data. I will be really grateful for your explanations.
Your remarks were absolutely fair. I have taken your advice into account and made the appropriate changes.
The original kata also has an unnecessary line:
The rand(2, 8) function will never execute.
Yeah, I forgot about that tab. Already fixed it. Thank you!
Thank you so much for your comments! I completely agree with you that providing information about input data is useful for testing. I have taken your recommendations into account and made the appropriate changes. Thank you very much!
Hi! Could you approve my translation into Go?