Hi, Boleslav!
>> random 16:25:00
== 9:58:19
>> random 16:25:00
== 5:01:20
What is this supposed to prove?
If you are saying that they return
different times then that is no surprise.
Use random/seed someinitialvalue
if you are trying to create re-usable
pseudo-random sequences for debugging.
I thing some people use
random/seed now
in their programs when they need a random series.
>> random 3
== 2
>> random 3
== 3
>> random 3
== 1
>> random 3
== 3
>> random 3
== 2
>> random 3
== 2
>> random 3
== 3
>> random 3
== 1
I am not sure why you want to
use random with dates, but
it seems to basically be working
>> random 9-Aug-2000/16:25:00+1:00
== 15-Jun-0060+1:00
This expression is wrong and is
one of the unfortunate gotchas in Rebol
in-line operators. You MUST separate with
a space.
9-Aug-2000/16:25:00+1:00
I don't know what the heck that is,
but rebol thinks it is a date! type.
You need to specify it this way if you
want to add an hour to a value:
9-Aug-2000/16:25:00 + 1:00
Then the result will be
9-Aug-2000/17:25:00
>> 1+1
** Syntax Error: Invalid integer -- 1+1.
** Where: (line 1) 1+1
>> 1 + 1
== 2
>> find y 9-Aug-2000/16:25:02+1:00
== none
this may have failed for the reason given above,
that you must have a space before and after the +
Louci se
---------------------------------------------------------------
Galt