Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PROG CHALLENGE A NEW BEGINNING

Name: Anonymous 2021-01-29 21:35

Actual programming challenge:
Write a program that generates random numbers 0-99 incl and prints them to stdout using any fixed separator. It stops when it emits a 0 (zero).
Any distribution is ok as long as the numbers are not trivially predictable and each number has a provable nonzero weight.

Shortest program wins. No jerkoff languages. Deadline is 1feb2020 noon Z time.

Name: Anonymous 2021-01-30 14:23

#include "Util/void.h"//if a space is a valid separator then its shorter
main(){int s;while(print(s=rrange(0,100)),s);}

Name: Anonymous 2021-01-30 14:30

#include "Util/void.h"//44 chars if using some hacky reuse of argc and for loops
main(int s){for(;s;print(s=rrange(0,100)));}

Name: Anonymous 2021-01-30 14:35

#include "Util/void.h"//36 chars with %100 and defaulting int
main(s){for(;s;print(s=rnd()%100));}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List