Generate a random string
5
A very simple script to generate random hexa colors.
just modify line 36 to generate more/less colors.
just modify line 36 to generate more/less colors.
5
Random String
6
Method for get n random number's
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.
7
This snippet illustrates using Genetic Algorithm for the hardware optimization.
8
Genetic Algorithm implementation.
See also "Weighted random selection" for RandomItemSelector class source.
See also "Weighted random selection" for RandomItemSelector class source.
8
Based on "Random Password Generation"
8
Return a random number within a gived range
8
Convert a password returned by JPasswordField::getPassword() into a String.
10
mattrmiller
This is a correct way to do login form auto-focus, checking to see if either username or password have focus already. This prevents someone from typing a username hitting TAB, then having JavaScript chime in, resetting focus to Username while user is typing in their password. In this case, the password is appended to the username which is in plaintext.









