# Random blink code - can someone show me how to use it?

**URL:** <https://forum.kirupa.com/t/random-blink-code-can-someone-show-me-how-to-use-it/135439>\
**Category:** Uncategorized\
**Created:** [January 27, 2005, 11:16am UTC](https://forum.kirupa.com/t/random-blink-code-can-someone-show-me-how-to-use-it/135439 "2005-01-27T11:16:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beebs](https://avatars.discourse-cdn.com/v4/letter/b/47e85d/32.png) [@Beebs](https://forum.kirupa.com/u/Beebs)\
**Post date:** [January 27, 2005, 11:16am UTC](https://forum.kirupa.com/t/random-blink-code-can-someone-show-me-how-to-use-it/135439/1 "2005-01-27T11:16:50Z")

</div>

This code comes from Claudio old post to generate random blink

```auto

tMin = 5;
tMax = 10;
function randomblips() {
        randommc = Math.floor(Math.random()*5)+1;
        _root["mc"+randommc].gotoAndPlay(2);
        clearInterval(moveInt);
        t = Math.round((Math.random()*(tMax-tMin))+tMin)*1000;
        moveInt = setInterval(randomblips, t);
}
moveInt = setInterval(randomblips, 1000)

```

and this is the link : [http://www.kirupa.com/forum/showthread.php?t=31891&highlight=blink](http://www.kirupa.com/forum/showthread.php?t=31891&highlight=blink)

Can someone show me how to use this code?

Thank you
