Assistrand Library

Assistrand[əˈsɪstrand] is javascript library, providing help to writing(especially like SF). The library includes base functions that can be used anywhere in need of random, and some utility functions specifically created like random IP addresses, DNA sequence, names, string, and more.

This library uses 'crypto', cryptographically safe random generator included in browser. If unavailable, library will use Math.random() instead. However, note that Math.random() is not safe. (It's still enough to generate normal random result.)

*Post-processing options(Not parameter for functions) are displayed as italic.

DISCLAIMER: This library uses other's code on some functions. They're:

Following functions are not implemented in here, but usable.

Function Options
"random" main module
RNG (0 ~ 253-1) / 253
Int Start
End
Base
Bit K (0 ~ )
SignedBit ( ~ )
Dice  d 
Float Start *Accepts float values.
End *Accepts float values.
Base
Boolean Possibility
Gaussian Mean
Std
Memory Bit
Shuffle
Select
Size
Sample
Size
ByteCode Len
Sep
Base64 Width
Height
IP Version
MAC Len
AltForm
DNA Len
RNA Len
UUID Version
Variant *Will be ignored when 'Complete random' is selected.
Hash Name
Coordinate
Date Start
End
Sep
Time Start
End
Sep
Lottery Max
Size
String Regexp
*Acceps multi-line input.
Max
Word Syllable
Sentence Word
Paragraph Sentence
Image Width
Height
Phone Country
Type
*Sometimes number may not appropriate as international line..
*Always ignores preceding 0 if possible.
"random.card" sub module
Card Name
"random.color" sub module
RGB 0~255, 0~255, 0~255
HSV 0~360, 0~100, 0~100
Name
"random.cpu" sub module
Intel Line
AMD Line
"random.name" sub module
Get GenName
Arguments (Requires: 1) *Comma-separated arguments.
Count
"random.particle" sub module
Color Quarks
Strict
hadron Quarks
Strict
Random
Glueon