Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. function janken(args){
  2.  
  3. var a = Math.floor( Math.random() * 1000);
  4.  
  5. if(a>992){//0.7%の確率{で勝ち
  6. return "やるやん!次は俺にリベンジさせて。では、どうぞ。";
  7. }else if(a>660){
  8. return "俺の勝ち!負けは次につながるチャンスです。ネバーギブアップ!ほな、いただきます。";
  9. }else if(a>300){
  10. return "俺の勝ち!たかがじゃんけん、そう思ってないですか?それやったら明日も、俺が勝ちますよ。ほな、いただきます。";
  11. }else{
  12. return "俺の勝ち!なんで負けたか明日まで考えといてください。そしたら何かが見えてくるはずです。ほな、いただきます。";
  13. }
  14. }
  15.  
  16. console.log(janken([]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement