- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 2# lyc43210 - Rnd ¨ç¼Æ
- ¶Ç¦^¤@«¬ºA¬° Single ªºÈ¡A¨ä¤º®e¬°¤@¶Ã¼ÆÈ¡C
- »yªk
- Rnd [(number)]
- ¿ï¾Ü©Ê¤Þ¼Æ number ¥i¥H¬O¤@«¬ºA¬° Single ªºÈ¡A©Î¥ô¦ó¼ÆȹBºâ¦¡¡C
- ¶Ç¦^È
- ¦pªG number ªºÈ¬O Rnd ¶Ç¦^ªº¶Ã¼ÆÈ
- ¤p©ó 0 ¨C¦¸³£¬O¨Ï¥Î number ·í°µ¶Ã¼ÆºØ¤lªº¬Û¦Pµ²ªG¡C
- ¤j©ó 0 ¶Ã¼Æ§Ç¦C¤¤ªº¤U¤@ӶüÆÈ¡C
- µ¥©ó 0 ³Ìªñ¤@¦¸²£¥Í¹Lªº¶Ã¼ÆÈ¡C
- ¬Ù²¤ ¶Ã¼Æ§Ç¦C¤¤ªº¤U¤@ӶüÆÈ¡C
- ½Ðª`·N
- Rnd ¨ç¼Æ¶Ç¦^ªº¶Ã¼ÆȤ¶©ó 0 ©M 1 ¤§¶¡¡A¥iµ¥©ó 0¡A¦ý¤£µ¥©ó 1¡C
- number ªºÈ·|¼vÅT Rnd ¶Ç¦^¶Ã¼ÆȪº¤èªk¡C
- µ¹©w¤@Ӷüƺؤl«á¡A«K·|²£¥Í¤@¯S©wªº¶Ã¼Æ§Ç¦C¡A¦]¬°¨C©I¥s¤@¦¸ Rnd ¨ç¼Æ¡A¥¦´N·|¨Ï¥Î¥ý«e©I¥s®É©Ò²£¥Íªº¶Ã¼ÆÈ·í¦¨·sªº¶Ã¼ÆºØ¤l¥H²£¥Í·sªº¶Ã¼ÆÈ¡C
- **********½Ð¬Ý³o¸Ì VBA»¡©ú¤¤¦³½d¨Ò ********************************
- ¦b¨Ï¥Î Rnd ¤§«e¡A³Ì¦n¥ý©I¥s Randomize ³¯z¦¡¡A¦ý¤£nµ¹¥ô¦ó¤Þ¼Æ¡A¦p¦¹«K·|¥H§@·~¨t²Îªº®É¶¡·í§@¶Ã¼ÆºØ¤l¨Ó°_©l¶Ã¼Æ²£¥Í¾¹¡C
- Y·Q²£¥Í¦b¬YÓ½d³ò¤º(«D 0 ¨ì 1)ªº¶Ã¼ÆÈ¡A¥i¨Ï¥Î¤U¦C¤½¦¡¡G
- Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
- ************************************************
- ¤Wz¤½¦¡¤¤¡Aupperbound ¬O¶Ã¼Æ½d³òªº¤W¡A¦Ó lowerbound «h¬O¶Ã¼Æªº¤U¡C
- ªþµù Y·Q±o¨ì«ÂЪº¶Ã¼Æ§Ç¦C¡A¥i¥H¦b©I¥s Randomize ¤§«e¥ý©I¥s Rnd ¨Ã¥B¶Ç¤J¤@¤p©ó 0 ªº¤Þ¼ÆÈ¡C¥ú¬O¥Î¦P¼Ëªº¶Ã¼ÆºØ¤l©I¥s Randomize ¨â¦¸ªº¸Ü¡A¨Ã¤£·|±o¨ì¨â¦¸¬Û¦Pªº¶Ã¼Æ§Ç¦C¡C
½Æ»s¥N½X |
|