Random string generator using AngularJS + json