Random generation trouble, or script trouble?
(since i can't get stackoverflow codepaste system i'll just use pastebin)
so here is the code.
http://pastebin.com/8HC4aDW4

In ideal it must give me 5 black squares on random positions on checker field. But in fact it giving me less up to none black squares.

I really stuck into this because i literally can't find answer.


PS here is compiled app.
http://dl.dropbox.com/u/9288177/CSE/images/Conquester.swf
Random generation trouble, or script trouble?
===

(since i can't get stackoverflow codepaste system i'll just use pastebin)
so here is the code.
http://pastebin.com/8HC4aDW4

In ideal it must give me 5 black squares on random positions on checker field. But in fact it giving me less up to none black squares.

I really stuck into this because i literally can't find answer.


PS here is compiled app.
http://dl.dropbox.com/u/9288177/CSE/images/Conquester.swf