Sanjayaranj
New Member
- Joined
- May 7, 2021
- Messages
- 8
- Office Version
- 2010
Hi Everybody ,
I need a help .
How to generate random numbers with some conditions.
Conditions
1. using these numbers.
1 3 4 7 9 10 11 14 15 18 19 21 24 25
2.I don’t need this pairs in a row
1 4
1 11
1 14
4 7
4 14
4 25
15 18
15 19
21 25
3. I need six numbers in a row
Examples
1 5 7 10 18 19 Correct
1 3 4 21 24 25 Incorrect
4 5 7 15 18 19 Incorrect
5 9 14 19 24 25 Correct
Any formulla? Or VBA code for this type .
I need a help .
How to generate random numbers with some conditions.
Conditions
1. using these numbers.
1 3 4 7 9 10 11 14 15 18 19 21 24 25
2.I don’t need this pairs in a row
1 4
1 11
1 14
4 7
4 14
4 25
15 18
15 19
21 25
3. I need six numbers in a row
Examples
1 5 7 10 18 19 Correct
1 3 4 21 24 25 Incorrect
4 5 7 15 18 19 Incorrect
5 9 14 19 24 25 Correct
Any formulla? Or VBA code for this type .