Hi,
I'ved spent two full days trying to find a solution, I can randomize numbers between two ranges and it works fine, But my problem is when i want to randomize five numbers that I got. eg.
I randomize 1-100 and I get 50.
I randomize 1-900 on another input field and I get 578.
I randomize 2-56 and get 31.
" " and get 43.
" " and get 78.
So I have five numbers: 50, 578, 31, 43 and 78.
I want to randomize those 5 numbers and get one to display.
This is to randomize Between two numbers:
But how do I randomize those 5 numbers I already have?
I want something like
Any help will be appreciated. Thanks!
I'ved spent two full days trying to find a solution, I can randomize numbers between two ranges and it works fine, But my problem is when i want to randomize five numbers that I got. eg.
I randomize 1-100 and I get 50.
I randomize 1-900 on another input field and I get 578.
I randomize 2-56 and get 31.
" " and get 43.
" " and get 78.
So I have five numbers: 50, 578, 31, 43 and 78.
I want to randomize those 5 numbers and get one to display.
This is to randomize Between two numbers:
Code:
Random random = new Random(); return random.Next(min, max);
I want something like
Code:
int returnValue = RandomNumber(50, 578, 31, 43, 78);
Comment