removed erroneous extra RAND from stored procedure left from earlier attempt, refs #1020