jsGen, phpGen
(Symbol, Number, ASCII Generator, (The best way of doing so))
A simple tool to generate random strings of anything. Numbers, strings, ascii, and more
Include jsGen
into your project <script type="text/javascript" src="jsGen.min.js"></script>
Functions (JavaScript)
`(x) = int
jsGen.getKeys(to,from)
> Genete a range of Char Codes to it's value.
jsGen.getKeys(33,57); // output: !"#$%&'()*+,-./0123456789
jsGen.genRandomAOA(x);
> Generate letters, numbers, and symbols. (All Of The Above)
jsGen.getRandomAOA(33); // output: w$g4guY;>+lYws>lMTlULj7@>17M{OT3I
jsGen.genRandomCharCodes(x);
> Generate random ASCII
jsGen.genRandomCharCodes(25); // output: 袈ꭗ㍯鏾볊쯲辗㙈顓�徬糴둢ሂ걜ư묱죫稼Ⱋ혾冹鿂
jsGen.genRandomNumbers(x);
> Generate random numbers
jsGen.genRandomNumbers(10) // output: 4326638780
jsGen.genRandomUTF8(x);
> Generate random UTF8 (Letters(High Case, Lower), Numbers)
jsGen.genRandomUTF8(15); // output: wqsvJKDWGRXvvJA
jsGen.genSerial(x, x);
> Generate a serial with args 0 dashes, args 2 length of each string
jsGen.genSerial(4,5); // output: Hw5FL-XmMRj-8IxCr-iavrY-jM1Ak
jsGen.genSerials(x, x, x);
> Generate a serial with args 0 dashes, args 1 length of each string, args 2 number of serials
jsGen.genSerials(4,5,2);
Output:
k5xVA-OzdGy-qv3RL-xF37B-QUK5s
FLzmK-IXjL6-WAAsC-3skK8-WqTWL
jsGen.each("function", x, x);
> Loop each function as string, args 1 length of random string, args 2 loop times
jsGen.each("genRandomCharCodes()",5, 5);
Output:
음ㆩᆈ㑃洢
䜘�ㆳᕇ
�仝돒㬗
㊽䠐�
s튖滬鳁
Functions (PHP)
(x) = Length of random object
Usage:
include 'phpGen.php';
$phpGen = new phpGen();
$phpGen->getKeys(to,from)
> Genete a range of Char Codes to it's value.$phpGen->genRandomAOA(x)
> Generate letters, numbers, and symbols. (All Of The Above)$phpGen->genRandomCharCodes(x)
> Generate random ASCII$phpGen->genRandomNumbers(x)
> Generate random numbers$phpGen->genRandomUTF8(x)
> Generate random UTF8 (Letters(High Case, Lower), Numbers)
More coming soon