Add rand library as extern crate