1. Euphoria bug?

Hello

Line: 209 of machine.e should be an atom

global procedure set_rand(atom seed)

Euman

new topic     » topic index » view message » categorize

2. Re: Euphoria bug?

Euman wrote:
> Line: 209 of machine.e should be an atom
> 
> global procedure set_rand(atom seed)

Why do you say that?

    global procedure set_rand(integer seed)

works fine. The random number generator
is based on integers.

Internally (I know you have the source)
it might still work if I declared seed as atom,
and allowed floating-point seeds, but they would
just get converted to integers anyway. I'm happy
to leave it as it is.

Regards,
    Rob Craig
    Rapid Deployment Software
    http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu