# Random Structure!

**URL:** <https://qa.fmod.com/t/random-structure/18282>\
**Category:** FMOD Studio\
**Created:** [January 27, 2022, 6:24am UTC](https://qa.fmod.com/t/random-structure/18282 "2022-01-27T06:24:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rabbival507](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@Rabbival507](https://qa.fmod.com/u/Rabbival507)\
**Post date:** [January 27, 2022, 6:24am UTC](https://qa.fmod.com/t/random-structure/18282/1 "2022-01-27T06:24:53Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/d/d5be8f056ba5eac9d8bd7e82b224895e619f3eae.png)  
I’m trying to build a piece that puts sections randomly one after another.  
I looked into the Celeste speech system and he basically put transition marks one over the other, increasing the percentage each time. The problem is- it doesn’t feel random enough to me when it plays.  
Is there any better method? As there an algorithm that can tell me what percentage should be put for each marker?

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [January 27, 2022, 8:06am UTC](https://qa.fmod.com/t/random-structure/18282/2 "2022-01-27T08:06:12Z")

</div>

It looks like my [Chiptune Generator](https://www.youtube.com/watch?v=N9sbOjrC9sM)!

For an equal distribution, when you stack N transitions, each transition (n) going from 1 to N (top to bottom) should have 100/(N-n+1) %.  
Exemple with N = 4:

- 100/(4-1+1) = 25 %
- 100/(4-2+1) = 33 %
- 100/(4-3+1) = 50 %
- 100/(4-4+1) = 100 %

---

<div class="post-metadata">

**Author:** ![Rabbival507](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@Rabbival507](https://qa.fmod.com/u/Rabbival507)\
**Post date:** [January 27, 2022, 6:01pm UTC](https://qa.fmod.com/t/random-structure/18282/3 "2022-01-27T18:01:16Z")

</div>

Huh  
that’s what I did hm  
well, thanks anyway, I’ll take a look at your generator 🙂

---

<div class="post-metadata">

**Author:** ![Alcibiade](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/alcibiade/32/4284_2.png) [@Alcibiade](https://qa.fmod.com/u/Alcibiade)\
**Post date:** [January 27, 2022, 7:53pm UTC](https://qa.fmod.com/t/random-structure/18282/4 "2022-01-27T19:53:35Z")

</div>

You also maybe should weight less some markers which are more frequent in terms of number of path going to it.
