# Random

**URL:** https://forum.kirupa.com/t/random/253688
**Category:** Uncategorized
**Created:** [March 4, 2008, 4:39am UTC](https://forum.kirupa.com/t/random/253688 "2008-03-04T04:39:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DanDaMan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)
#### Post date: [March 4, 2008, 4:39am UTC](https://forum.kirupa.com/t/random/253688/1 "2008-03-04T04:39:43Z")

</div>

Hello, is there an ActionScript code for randomly testing something? Like there will be four different possibilities that are given, and one is randomly chosen. So there is a 25% chance THIS will happen, 25% chance THAT will happen, etc.
