Added support for random feature.  Still unstable!

Still unstable. @1k5, have a look.