Name:
Anonymous
2008-07-29 19:29
#include <stdio.h>
int main(int argc,char argv*[]){
int i = 0;
int BUFFA;
while(argv[i]!='\0'){
if(argv[i]='a')
BUFFA++;
else if(argv[i]='b')
BUFFA--;
else if(argv[i]='c')
printf("%i\n",BUFFA);
else printf("%s","Error.\n");
}
}
Name:
Anonymous
2011-01-02 21:43
>>347
Simulate a dice throw:
aaaaarac
In the example above (from esolang) the interval would be [0, 5).
In english:
Set the accumulator to a random value between 0 inclusive and the accumulator exclusive.