Skip to content

aderowbotham/SequenceRandomiser.as

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

SequenceRandomiser / Randomizer

Dug this one out of an old Flash project. Could easily be ported to JS

Here’s another simple utility that came out of something old. It simply returns an array of consecutive integers, only in a random order, with no repetition. By default the smallest value is zero and the highest is the length of array requested – 1. However you can set the base value via an optional second argument.

A typical usage would be to trigger a number of animations in a random order.

Again, simple stuff but if it saves you 10 minutes then this post was worthwhile.

About

Creates array to define random sequence of integers * with no repetition *

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published