Hacker News new | ask | show | jobs
by cpach 695 days ago

  import random
  platform = random.SystemRandom().choice(["Astro", "Blogger", "Hugo", "WordPress", "Ghost"])
  print(platform)
2 comments

Stylistic note, you can use `random.choice()`. If you aren't generating an encryption key, you probably don't need `SystemRandom`.
True. It’s an idée fixe of mine. Doesn’t really cost anything extra though.
zsh: command not found: import

/s

Try this one:

  echo -e "Astro\nBlogger\nHugo\nWordPress\nGhost" | shuf | head -n 1