| random() | ใช้สุ่มข้อความ ตามชนิดที่กำหนด ตามจำนวนที่กำหนด |
|---|
method:random ( type, length );
return type:string
special:static
content:ใช้สุ่มข้อความ ตามชนิดที่กำหนด ตามจำนวนที่กำหนด
example:echo text::random ( "alnum", 30 );
comment:ตัวแปร type ให้กำหนดว่าจะสุ่มตัวอักษรชนิดไหนบ้าง ได้แก่ alnum คือ 0-9, a-z, A-Z alpha ได้แก่ a-z, A-Z numeric ได้แก่ 0-9 nozero ได้แก่ 1-9