andrewwglenn
New Member
- Joined
- Sep 3, 2013
- Messages
- 10
I am trying to generate a sequence of incremented integers where some are known and some are populated randomly within a sequence construct. For example:
#<10<#<#<20<#<#<30<<<100 <#<#<1010, etc.
The idea is that each of the "#" is replaced with a unique integer that is greater than the previous and less than the next (whether the next is random or known).
The problem I encounter is tackling the 2nd consecutive random integer (shown above in bold). I haven't figured out how to guarantee that the integer is greater than the value directly preceding it. Is this possible without VBA or looping?
Ultimately, my goal is to be able to randomly generate an incremented list within these constraints as often as necessary.
Thanks.
Andrew
#<10<#<#<20<#<#<30<<<100 <#<#<1010, etc.
The idea is that each of the "#" is replaced with a unique integer that is greater than the previous and less than the next (whether the next is random or known).
The problem I encounter is tackling the 2nd consecutive random integer (shown above in bold). I haven't figured out how to guarantee that the integer is greater than the value directly preceding it. Is this possible without VBA or looping?
Ultimately, my goal is to be able to randomly generate an incremented list within these constraints as often as necessary.
Thanks.
Andrew