🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Jerry Lamb Sat, 15 Sep 2012 09:21
40tude Dialog: Random or randomize?
#251588
Author: Jerry Lamb
Date: Sat, 15 Sep 2012 09:21
6 lines
1546 bytes
For 40tude Dialog, I'm trying to create a script that will create a
random number, but the Object Pascal interpretation engine doesn't
seem to recognize either Random or Randomize.

Is there a specific method for generating random numbers in a specific
range in 40tude Dialog's Object Pascal scripting language?
Re: 40tude Dialog: Random or randomize?
#251591
Author: Sqwertz
Date: Sat, 15 Sep 2012 20:36
19 lines
1879 bytes
On Sat, 15 Sep 2012 09:21:41 +0000 (UTC), Jerry Lamb wrote:

> For 40tude Dialog, I'm trying to create a script that will create a
> random number, but the Object Pascal interpretation engine doesn't
> seem to recognize either Random or Randomize.
> 
> Is there a specific method for generating random numbers in a specific
> range in 40tude Dialog's Object Pascal scripting language?

There is a library called dext.dll that includes an RNG here:

http://dialog.datalist.org/downloads/download.html
(Scroll down to the bottom)

It is used like so:

function randomNumber( max : integer ) : integer; external 'randomNumber@dExt.dll';

-sw
Re: 40tude Dialog: Random or randomize?
#251713
Author: Jerry Lamb
Date: Wed, 26 Sep 2012 04:22
22 lines
2091 bytes
Sqwertz, in <news:uh3a3n867mva$.dlg@sqwertz.com> did thusly write:

> On Sat, 15 Sep 2012 09:21:41 +0000 (UTC), Jerry Lamb wrote:
> 
>> For 40tude Dialog, I'm trying to create a script that will create a
>> random number, but the Object Pascal interpretation engine doesn't
>> seem to recognize either Random or Randomize.
>> 
>> Is there a specific method for generating random numbers in a specific
>> range in 40tude Dialog's Object Pascal scripting language?
> 
> There is a library called dext.dll that includes an RNG here:
> 
> http://dialog.datalist.org/downloads/download.html
> (Scroll down to the bottom)
> 
> It is used like so:
> 
> function randomNumber( max : integer ) : integer; external 'randomNumber@dExt.dll';

Sorry for the delayed response, I don't get around to this group very
often. Thank you for the info, I'll give it a try.
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