added dice roll sample for stackverflow