Proper RandomHandler implementation