LoginSignup
14
14

More than 5 years have passed since last update.

scss
@charset "UTF-8";
body {
  &::before {
    $generated: "";
    $zundokoLoop: true;
    $zundokoCount: 0;
    @while $zundokoLoop {
      $choise: "ドコ";
      @if random() < 0.5 {
        $choise: "ズン";
        $zundokoCount: $zundokoCount + 1;
      } @else {
        @if $zundokoCount >= 4 {
          $zundokoLoop: false;
          $choise: $choise + "キ・ヨ・シ!";
        }
        $zundokoCount: 0;
      }
      $generated: $generated + $choise;
    }
    content: $generated;
  }
}

(もう少し短く書けるので後で直す。)

14
14
1

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
14
14