From 65aebeaeb495185cefb32663dd555065fe821423 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 9 Dec 2008 09:00:25 +0000 Subject: ランダム表示の修正 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26210 d0d07461-0603-4401-acd4-de1884942a52 --- happy_hacking_vimperator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'happy_hacking_vimperator.js') diff --git a/happy_hacking_vimperator.js b/happy_hacking_vimperator.js index 5266c96..9a59da0 100644 --- a/happy_hacking_vimperator.js +++ b/happy_hacking_vimperator.js @@ -2,7 +2,7 @@ var PLUGIN_INFO = Happy Happy Vimperator This plugin makes you to True Vimperatorer -2.0 +2.1 anekos 2.0pre 2.0pre @@ -119,7 +119,7 @@ http://creativecommons.org/licenses/by-sa/3.0/ }; function shit () - meows[Math.round(Math.random() * meows.length + 0.5)]; + meows[Math.floor(Math.random() * meows.length)]; function fuck (msg) { let sz = innerWidth / msg.length / 1.5; -- cgit v1.2.3