# How do i randomize my sound after a kill

**URL:** <https://forums.unrealengine.com/t/how-do-i-randomize-my-sound-after-a-kill/1656768>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [January 31, 2024, 9:11pm UTC](https://forums.unrealengine.com/t/how-do-i-randomize-my-sound-after-a-kill/1656768 "2024-01-31T21:11:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timmm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Timmm](https://forums.unrealengine.com/u/Timmm)\
**Post date:** [January 31, 2024, 9:11pm UTC](https://forums.unrealengine.com/t/how-do-i-randomize-my-sound-after-a-kill/1656768/1 "2024-01-31T21:11:03Z")

</div>

How do i randomize my sound after a kill, now i have them playing all at the same time

---

<div class="post-metadata">

**Author:** ![bananna\_manuk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bananna\_manuk](https://forums.unrealengine.com/u/bananna_manuk)\
**Post date:** [February 1, 2024, 8:01pm UTC](https://forums.unrealengine.com/t/how-do-i-randomize-my-sound-after-a-kill/1656768/2 "2024-02-01T20:01:15Z")

</div>

put them in an array then use the random function to pick which number is chosen, then play that sound 🙂

---

<div class="post-metadata">

**Author:** ![BdawgsLit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BdawgsLit](https://forums.unrealengine.com/u/BdawgsLit)\
**Post date:** [February 1, 2024, 9:04pm UTC](https://forums.unrealengine.com/t/how-do-i-randomize-my-sound-after-a-kill/1656768/3 "2024-02-01T21:04:24Z")

</div>

you could use a random number generator, link up your trigger to it, then make X amount of triggers that go off when it hits there number. but yes an array then random function via verse would be easier this could just be a different approach using visual devices instead of code

---

<div class="post-metadata">

**Author:** ![JamieDeGamie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JamieDeGamie](https://forums.unrealengine.com/u/JamieDeGamie)\
**Post date:** [February 1, 2024, 9:06pm UTC](https://forums.unrealengine.com/t/how-do-i-randomize-my-sound-after-a-kill/1656768/5 "2024-02-01T21:06:09Z")

</div>

> [@get sound effects when i kill](https://forums.unrealengine.com/t/get-sound-effects-when-i-kill/1622828/9):
>
> Select all sounds that u want. Right click, Create a single cue Then put the cue in a audioplayer. I think it will play random sound then. sweat_smile
