---
title: "Discussion on \"Golang select ready channel randomly\" | Hashnode"
description: "Discussion on \"Golang select ready channel randomly\". When you have multiple channels ready in a select statement, go will select a ready channel randomly:\nFor example:\npackage main\n\nimport \"fmt\"\n\nfunc main() {\n    a := make(chan int, 10)\n    b := make(chan int, 10)\n    c := make(chan int, 10)\n\n    for ..."
url: "https://hashnode.com/posts/golang-select-ready-channel-randomly/607b2c58c99e200d08f7b5c7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Golang select ready channel randomly](https://hn.0xbf.me/golang-select-ready-channel-randomly?utm_source=hashnode&utm_medium=feed)

When you have multiple channels ready in a select statement, go will select a ready channel randomly: For example: package main import "fmt" func main() { a := make(chan int, 10) b := make(chan int, 10) c := make(chan int, 10) for ...

Apr 17, 2021 · 2 min read · hn.0xbf.me  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[0xBF](https://hashnode.com/@0xbf)

@0xbf

  
[View profile](https://hashnode.com/@0xbf)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
