1. Maybe I'm just missing it...

Well, I'm real new at using Euphoria, still evalulating it actually, and
constantly have to resort to the help files.  Anyway, I have a problem
that I haven't found a solution to.

I recently decided to translate a BASIC program that I was using to make
randomized modifications to one of my Windows ini files.  The problem is
that I need to create a random number, and turn it into a string.  For
example, one line of the ini file that needs changed is:

Close=15

Actually, the 15 is speculative.  What the program needs to do is pick a
random number between 1 and 19, and put it in place of the 15.  If it
picks 12, then the output is:

Close=12

This is a fairly simple procedure in BASIC, because you can use the
STR$() command to convert a number into a string, but I haven't found a
way to do it in Euphoria.  It's probably really obvious, and I'm just
missing it, but I'd appreciate the help.

Thanks.

Jim Bearden
(J-Solo at juno.com)

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu