Weighted Random in Golang
<p>I have to do weighted Random in Golang but I'm getting an error:</p>

<pre><code>multiple-value randutil.WeightedChoice() in single-value context
</code></pre>

<p>Code:</p>

<pre><code>package main

import "fmt"
import "github.com/jmcvetta/randutil"

func main() {    
    choices := make([]randutil.Choice, 0, 2)    
    choices = append(choices, randutil.Choice{1, "dg"})
    choices = append(choices, randutil.Choice{2, "n"})    
    result := randutil.WeightedChoice(choices)    
    fmt.Println(choices)
}
</code></pre>

<p>Any help will be deeply appreciated.</p>