LoginSignup
1

More than 5 years have passed since last update.

アルファベットから4つランダム取り出す(ワンライナー)

Posted at

たまにはこんなのも。。。お遊び投稿です

get4.js
'abcdefghijklmnopqrstuvwxyz'.split('').sort(function(){return Math.random()-0.5;}).slice(0,4)

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1