# Random holes

**URL:** <https://forum.dynamobim.com/t/random-holes/72015>\
**Category:** Uncategorized\
**Created:** [January 5, 2022, 8:24pm UTC](https://forum.dynamobim.com/t/random-holes/72015 "2022-01-05T20:24:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee.thackray](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@lee.thackray](https://forum.dynamobim.com/u/lee.thackray)\
**Post date:** [January 5, 2022, 8:24pm UTC](https://forum.dynamobim.com/t/random-holes/72015/1 "2022-01-05T20:24:40Z")

</div>

hi does anyone know how to set increments in a range from 0 - 10 in increments of 2

ie 2,4,6,8,10

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [January 5, 2022, 8:27pm UTC](https://forum.dynamobim.com/t/random-holes/72015/2 "2022-01-05T20:27:41Z")

</div>

Try a code block and type in

0…10…2

---

<div class="post-metadata">

**Author:** ![Daniel\_Hurtubise](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daniel_hurtubise/32/146534_2.png) [@Daniel\_Hurtubise](https://forum.dynamobim.com/u/Daniel_Hurtubise)\
**Post date:** [January 5, 2022, 8:28pm UTC](https://forum.dynamobim.com/t/random-holes/72015/3 "2022-01-05T20:28:11Z")

</div>

0…10…2 in a code block will do a sequence starting at 0, ending at 10 by 2 steps

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/c/0cb04323bc7244412b30ad062c27a7ecbae44190.png)

---

<div class="post-metadata">

**Author:** ![lee.thackray](https://avatars.discourse-cdn.com/v4/letter/l/c0e974/32.png) [@lee.thackray](https://forum.dynamobim.com/u/lee.thackray)\
**Post date:** [January 5, 2022, 8:36pm UTC](https://forum.dynamobim.com/t/random-holes/72015/4 "2022-01-05T20:36:14Z")

</div>

Thanks for this its a real help to a complete novice!! I’m basically bringing in a series of numbers at the moment into math.remap range but it will only allow you to set min and max not increments so I need to bring in a list of numbers and then filter those numbers to be only 2,4,6,8,10 if that makes any sense. I will post an image when I return to work tomorrow.

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [January 5, 2022, 8:37pm UTC](https://forum.dynamobim.com/t/random-holes/72015/5 "2022-01-05T20:37:08Z")

</div>

This may be helpful: [Shorthand | The Dynamo Primer](https://primer.dynamobim.org/07_Code-Block/7-3_shorthand.html)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [January 6, 2022, 1:56am UTC](https://forum.dynamobim.com/t/random-holes/72015/6 "2022-01-06T01:56:22Z")

</div>

Start with your Math.RemapRange where the low is zero and the high is 5 (I know, not 0-10 but have some patience).

Then move into a Math.around node which will ensure that all values are full numbers between 0 and 5.

Then multiply the result by two.

In design script it would be something like this:  
`Math.Round(Math.RemapRange(valueSet,0,5))*2;`
