tuned
authorhaftmann
Fri, 10 Aug 2007 17:10:09 +0200
changeset 24226 86f228ce1aef
parent 24225 348e982c694b
child 24227 9b226b56e9a9
tuned
src/HOL/ex/Random.thy
--- a/src/HOL/ex/Random.thy	Fri Aug 10 17:10:06 2007 +0200
+++ b/src/HOL/ex/Random.thy	Fri Aug 10 17:10:09 2007 +0200
@@ -171,13 +171,18 @@
 end;
 *}
 
+code_reserved SML Random
+
 code_type randseed
   (SML "Random.seed")
+types_code randseed ("Random.seed")
 
 code_const random_int
   (SML "Random.value")
+consts_code random_int ("Random.value")
 
 code_const run_random
-  (SML "case _ (Random.seed ()) of (x, '_) => x")
+  (SML "case (Random.seed ()) of (x, '_) => _ x")
+consts_code run_random ("case (Random.seed ()) of (x, '_) => _ x")
 
 end