# Concatination Fustulation

**URL:** <https://forum.kirupa.com/t/concatination-fustulation/327957>\
**Category:** flash\
**Created:** [April 8, 2012, 5:33pm UTC](https://forum.kirupa.com/t/concatination-fustulation/327957 "2012-04-08T17:33:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimacy](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rimacy](https://forum.kirupa.com/u/rimacy)\
**Post date:** [April 8, 2012, 5:33pm UTC](https://forum.kirupa.com/t/concatination-fustulation/327957/1 "2012-04-08T17:33:39Z")

</div>

A random number between 1 and 10 is generated. There are 10 soundclips with the names cb1,cb2,cb3 etc

I want to concatinate(am I using that correctly?) the random number with cb to play one of those 10 sounds. The one thing I can tell you is that this code is not right!

```auto
var playCb:Number = Math.ceil(Math.random() * 10);

cbSoundChannel= cb[playCb].play();

```

I get an “undefined property cb” error cb1 would work as would cb2 etc.

Lil’ help
