Generate a random string
6
Method for get n random number's
15
This litle snippet shows how to store passwords and then check inputed passwords if they are correct.
(In this snippet we use som pseduo code for the database connection).
(In this snippet we use som pseduo code for the database connection).
13
It works with Array types. The example is a simple list of numbers, but the array could contain anything; lists of strings, functions, DOM nodes, whatever. Unfortunately, a lot of things that seem like arrays in the DOM aren't really, so you can't shuffle the images on a page with just document.images.shuffle() all by itself.
-12
This is a quick and easy method to generate a somewhat random password. This simply generates the MD5 hash for the integer returned by the time() function and then truncates it to the specific length.
19
inxilpro
This function creates relatively secure random passwords. It's by no means ideal, but it should work in most non-critical situations. The nice thing is the generator attempts to create passwords that people can pronounce and chooses letters that won't be mistaken for others (such as the numeral "1", an upper-case "i" and a lower-case "L"). To keep the code short much of this functionality is very rudimentary, but it's better than nothing.
8
Based on "Random Password Generation"
7
Weighted random selection from the list.
Don't forget to call itemsChanged after updating list content.
Don't forget to call itemsChanged after updating list content.
8
Genetic Algorithm implementation.
See also "Weighted random selection" for RandomItemSelector class source.
See also "Weighted random selection" for RandomItemSelector class source.
7
This snippet illustrates using Genetic Algorithm for the hardware optimization.
8
Return a random number within a gived range









