<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello Herbert,<br>
<br>
i tried it.<br>
The following example works well:<br>
%%%%%%<br>
<small>marco@marco-desktop:~$ gs<br>
GPL Ghostscript 8.70 (2009-07-31)<br>
Copyright (C) 2009 Artifex Software, Inc. All rights reserved.<br>
This software comes with NO WARRANTY: see the file PUBLIC for details.<br>
GS>realtime<br>
GS<1>==<br>
5701<br>
GS>usertime<br>
GS<1>==<br>
0<br>
GS></small><br>
%%%%%%<br>
But the following doesn't work:<br>
<br>
%%%%%<br>
GS<2>10 srand<br>
GS<2>==<br>
0.5<br>
GS<1>5 srand<br>
GS<1>==<br>
-file-<br>
GS>20 srand<br>
GS>==<br>
Error: /stackunderflow in --execute--<br>
Operand stack:<br>
--nostringval--<br>
Execution stack:<br>
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval--
--nostringval-- %loop_continue 1753 2 3 %oparray_pop
--nostringval-- --nostringval-- false 1 %stopped_push
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval--<br>
Dictionary stack:<br>
--dict:1150/1684(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)--<br>
Current allocation mode is local<br>
Last OS error: 11<br>
Current file position is 3<br>
%%%%%%%%%<br>
<br>
What happened?<br>
<br>
regards<br>
Marco<br>
</body>
</html>