String selection and assigning

String a="aaa"; String b="bbb"; String c="ccc"; String d="ddd"; String p,q,r,s; How can I assign values to p,q,r,s randomly from a,b,c,d? Like p should have value from a,b,c,d and similarly for q,r,s But the value should not repeat.
Welcome to SO. See @BalusC's answer from here:…. Also, it helps to do a search (here or on Google), before posting new questions.

以上就是String selection and assigning的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准