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?