method:random ();return type:doublespecial:staticcontent:ใช้ในการสุ่มตัวเลข ระหว่าง 0 ถึง 1example:double rannumber = random();