---
title: Load balance randomly across multiple backends
summary: Load balance requests randomly across multiple backends, dropping them automatically if they become unhealthy.
url: https://www.fastly.com/documentation/solutions/examples/random-director-with-weighted-probability
---

Load balance requests randomly across multiple backends, dropping them automatically if they become unhealthy.

## VCL

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/4a742de4)

## Compute

### Rust

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/67dce0e8)

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/85eab54a)

### Go

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/9b9ab52f)

