Thread View: net.sources.bugs
1 messages
1 total messages
Started by jrb
Fri, 20 Feb 1987 19:41
markov3, roll(n) patch
Author: jrb
Date: Fri, 20 Feb 1987 19:41
Date: Fri, 20 Feb 1987 19:41
16 lines
1318 bytes
1318 bytes
I had a couple of problems with the patches posted to net.sources for the
markov3.l program. The patches stopped the core dumps but I found that the
bit-wise operations happening in the roll(n) function were causing WAY too
much duplication on the machine I am using (Tandy 6000, XENIX 3.01.02). As
the roll(n) function is just supposed to return a random number between 0 and
n-1 I have applied the following fix using the % operator. My markov3.l works
great if line 377 reads like:
return(rand() % n);
This is a great program (although it's a memory piggy)... thanks!
--
Jon Boede ...!{ihnp4,akgua,gatech}!petro!jrb
512/599-1847 2555 N.E. Loop 410, #1403, 78217
"People who are incapable of making decisions are
the ones who hit those barrels at freeway exits."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads