Articles Tagged 'Math.random ()'

Very short snippet: Actionscript extend an array by the method shuffle ()

I had already talked about how to implement the method shuffle () in Javascript and Actionscript . I realized, tuttaavia, have not emphasized that Actionscript is able to extend, in the same manner as JavaScript, its object Array :

More ...

Very short snippet: shuffle () in Javascript and Actionscript

In PHP there is a handy feature called shuffle() which allows for mixing an array (see Very short trick: take random elements from an array in PHP ). An excellent version of the Javascript I found here . Below the code slightly revised:

More ...


Stop SOPA