# Fill ByteArray with random values

**URL:** <https://forum.kirupa.com/t/fill-bytearray-with-random-values/305088>\
**Category:** flash\
**Created:** [February 18, 2010, 11:39pm UTC](https://forum.kirupa.com/t/fill-bytearray-with-random-values/305088 "2010-02-18T23:39:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [February 18, 2010, 11:39pm UTC](https://forum.kirupa.com/t/fill-bytearray-with-random-values/305088/1 "2010-02-18T23:39:22Z")

</div>

Is it possible to fill a ByteArray with random values that SoundMixer.computeSpectrum() could read? If so, how?

The reason I ask is if a tab like youtube is open, I get a security error. I would at least like to see some random values even if they arent matched with the music playing.
