# bug: select picks random case, message reordering observed

- **ID:** `go/select-random-case-when-multiple-ready`
- **Domain:** go
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

When multiple select cases are ready, Go picks one pseudo-randomly. Code assuming deterministic ordering or priority breaks.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   select {
case v := <-highPriority:
    handle(v)
default:
    select {
    case v := <-highPriority:
        handle(v)
    case v := <-lowPriority:
        handle(v)
    }
}
   ```
2. **** (85% success)
   ```
   type msg struct { prio int; body any }
// single channel; consumer sorts or dispatches by prio
   ```

## Dead Ends

- **** — Go does not honor case order for priority; selection is random. (95% fail)
- **** — Doesn't affect select semantics and adds latency. (90% fail)
