Skip to main content
deleted 5 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46

C (gcc), 48 bytes

f(){printf("Min%sraft",rand()%10000?"ec":"ce");}

Try it online!

Version closer to \$\frac{1}{10000}\$

For a pseudorandomness as close to \$\frac{1}{10000}\$ as possible:

C (gcc), 8179 bytes

i;ff(){long p=0,m=1e4;form=1e4,i;for(i=0;m/++i;i=m;i--;)p+=rand();printf("Min%sraft",p%m?"ec":"ce");}

Try it online!Try it online!

C (gcc), 48 bytes

f(){printf("Min%sraft",rand()%10000?"ec":"ce");}

Try it online!

Version closer to \$\frac{1}{10000}\$

For a pseudorandomness as close to \$\frac{1}{10000}\$ as possible:

C (gcc), 81 bytes

i;f(){long p=0,m=1e4;for(i=0;m/++i;)p+=rand();printf("Min%sraft",p%m?"ec":"ce");}

Try it online!

C (gcc), 48 bytes

f(){printf("Min%sraft",rand()%10000?"ec":"ce");}

Try it online!

Version closer to \$\frac{1}{10000}\$

For a pseudorandomness as close to \$\frac{1}{10000}\$ as possible:

C (gcc), 79 bytes

f(){long p=0,m=1e4,i;for(i=m;i--;)p+=rand();printf("Min%sraft",p%m?"ec":"ce");}

Try it online!

added 591 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46

C (gcc), 48 bytes

f(){printf("Min%sraft",rand()%10000?"ec":"ce");}

Try it online!

Version closer to \$\frac{1}{10000}\$

For a pseudorandomness as close to \$\frac{1}{10000}\$ as possible:

C (gcc), 81 bytes

i;f(){long p=0,m=1e4;for(i=0;m/++i;)p+=rand();printf("Min%sraft",p%m?"ec":"ce");}

Try it online!

C (gcc), 48 bytes

f(){printf("Min%sraft",rand()%10000?"ec":"ce");}

Try it online!

C (gcc), 48 bytes

f(){printf("Min%sraft",rand()%10000?"ec":"ce");}

Try it online!

Version closer to \$\frac{1}{10000}\$

For a pseudorandomness as close to \$\frac{1}{10000}\$ as possible:

C (gcc), 81 bytes

i;f(){long p=0,m=1e4;for(i=0;m/++i;)p+=rand();printf("Min%sraft",p%m?"ec":"ce");}

Try it online!

Rollback to Revision 1
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46

C (gcc), 48 4948 bytes

Added a byte, in response to ericw31415's comment, to get the probability as close as possible to \$\frac{1}{10000}\$.

f(){printf("Min%sraft",rand()>214748%10000?"ec":"ce");}

Try it online!Try it online!

C (gcc), 48 49 bytes

Added a byte, in response to ericw31415's comment, to get the probability as close as possible to \$\frac{1}{10000}\$.

f(){printf("Min%sraft",rand()>214748?"ec":"ce");}

Try it online!

C (gcc), 48 bytes

f(){printf("Min%sraft",rand()%10000?"ec":"ce");}

Try it online!

deleted 9 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading
added 198 characters in body
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading
Source Link
Noodle9
  • 20.3k
  • 3
  • 21
  • 46
Loading