How about 
dice = 1 + int(uniform(0,6)/6)
Ofer
-----Original Message-----
From: gretl-users-bounces(a)lists.wfu.edu
[mailto:gretl-users-bounces@lists.wfu.edu] On Behalf Of Lars P?lsson-Syll
Sent: Thursday, August 27, 2009 7:29 PM
To: gretl-users(a)lists.wfu.edu
Subject: Re: [Gretl-users] Gretl-users Digest, Vol 31, Issue 23
Hi
I wonder if it is poosible with gretl somehow to make a simulation of
throwing two dices
(when using uniform I only get CONTINUOUS values between  1 and 6).
Best regards,
Lars 
Lars Palsson Syll
Professor of Civics
Malmo University
Sweden
>> <gretl-users-request(a)lists.wfu.edu> 09-08-27 18:05
>>> 
Send Gretl-users mailing list submissions to
	gretl-users(a)lists.wfu.edu
To subscribe or unsubscribe via the World Wide Web, visit
	
http://lists.wfu.edu/mailman/listinfo/gretl-users
or, via email, send a message with subject or body 'help' to
	gretl-users-request(a)lists.wfu.edu
You can reach the person managing the list at
	gretl-users-owner(a)lists.wfu.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gretl-users digest..."
Today's Topics:
   1. Gnuplot Book: Finally (finally!) in print! (Philipp K. Janert)
----------------------------------------------------------------------
Message: 1
Date: Thu, 27 Aug 2009 06:20:22 -0700
From: "Philipp K. Janert" <janert(a)mailaps.org>
Subject: [Gretl-users] Gnuplot Book: Finally (finally!) in print!
To: gretl-users(a)lists.wfu.edu
Message-ID: <200908270620.22503.janert(a)mailaps.org>
Content-Type: text/plain;  charset="us-ascii"
 
After what at times seemed like an interminable
delay, the Gnuplot book is finally available in 
printed form!
This means that anybody who pre-ordered the 
book should by now already have their copy or
receive it within the next few days.
I wanted to thank all of you who contributed 
questions and comments, or pointed out errors in 
the draft version of the manuscript. It really made 
a difference!
More details are available on the publisher's site:
        
www.manning.com/janert
and the book is available from any bookseller,
including Amazon:
        
http://www.amazon.com/gp/product/1933988398
I wanted to thank everyone for their patience and
also wanted to apologize again for the delay. I hope 
you will find that it was worth it.
Best,
                Ph.
------------------------------
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users
End of Gretl-users Digest, Vol 31, Issue 23
*******************************************
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users