loaded random_selection in index file
added the ability to throw exceptions on required request params and made dashboard_id required
made function return value
removed unneeded branch variable
removed test print