Skip to content

Instantly share code, notes, and snippets.

View corbtastik's full-sized avatar
😀

corbs corbtastik

😀
  • Red Hat - Application Architect
  • Texas
View GitHub Profile
@corbtastik
corbtastik / yes-no.sh
Last active January 23, 2022 20:55
Bash yes no choice snippet
#!/bin/bash
while true; do
read -p "Do you wish to continue (yes or no)? " yn
case $yn in
[Yy]* ) break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
# Ignore docs files
_gh_pages
_site
.ruby-version
# Numerous always-ignore extensions
*.diff
*.err
*.orig
*.log
import org.apache.commons.lang3.RandomStringUtils;
import java.util.Calendar;
import java.util.Date;
import java.util.Random;
public final class Randomness {
private static final Random random = new Random(System.currentTimeMillis());