Skip to content

Instantly share code, notes, and snippets.

@c4milo
Created May 16, 2014 02:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c4milo/27c99ef6cc41c22732cc to your computer and use it in GitHub Desktop.
Save c4milo/27c99ef6cc41c22732cc to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"math/rand"
"strconv"
"time"
"github.com/octplane/mnemo"
)
func init() {
rand.Seed(time.Now().UTC().UnixNano())
}
func main() {
i := 100 + rand.Intn(10000-1000)
fmt.Println("--> " + strconv.Itoa(i))
fmt.Println(mnemo.FromInteger(i))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment