0

This question already has an answer here:

I am trying to create a simple gambling app in which the users are all assigned numbers when they enter the contest and i need to select a winner based on this number.

Consider the numbers are 1-100

How do i successfully select a random number form this range?

marked as duplicate by Lauri Peltonen, Eli Drion, Community Apr 24 at 8:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.