Skip to content

Instantly share code, notes, and snippets.

View davidhsv's full-sized avatar

David Vieira davidhsv

  • Recife-PE, Brazil
View GitHub Profile
@davidhsv
davidhsv / Main.java
Created June 9, 2016 18:29
Consecutive Coin Flips - Numberphile - Test
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Random;
public class Main {
public static void main(String[] args) throws NoSuchAlgorithmException {
// HT vs HH
// try to mess with this and see the result
@davidhsv
davidhsv / coin.java
Created June 9, 2016 18:29
Coin Flip Test
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Random;
public class Main {
public static void main(String[] args) throws NoSuchAlgorithmException {
// HT vs HH
// try to mess with this and see the result