#! @HOME@/bin/lisp-script ;;; -*- Mode: Lisp -*- ;;; ;;; $Header: /home/gene/library/website/docsrc/jmt/RCS/testseed-lisp.sh,v 395.1 2008/04/20 17:25:47 gene Exp $ ;;; ;;; Copyright (c) 2004 Gene Michael Stover. All rights reserved. ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU Lesser General Public License as ;;; published by the Free Software Foundation; either version 2.1 of the ;;; License, or (at your option) any later version. ;;; ;;; This program is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;;; General Public License for more details. ;;; ;;; You should have received a copy of the GNU Lesser General Public ;;; License along with this program; if not, write to the Free Software ;;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 ;;; USA (load "/home/gene/src/lisp-script/src/script.lisp") (load "jmt.lisp") (script-start) ; unsigned long init[4]={0x123, 0x234, 0x345, 0x456}, length=4; ; init_by_array(init, length); (format *standard-output* "1000 outputs of genrand_int32()~%") (dotimes (i 1000) (format *standard-output* "~10D " (mt-random (expt 2 32))) (when (eql (mod i 5) 4) (format "~%"))) (format *standard-output* "\n1000 outputs of genrand_real2()~%") (dotimes (i 1000) (format *standard-output* "~10,8F " (mt-random 1.0))) (when (eql (mod i 5) 4) (format *standard-output* "~%"))) (script-exit) ;;; ---- end of file ---