From a7d7542dc646a5fd124ef71e71ce260889f1701b Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 2 Feb 2016 19:24:50 +0100 Subject: Moved to 1415 directory --- 1415/files/practicum/RandomGetallen.icl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 1415/files/practicum/RandomGetallen.icl (limited to '1415/files/practicum/RandomGetallen.icl') diff --git a/1415/files/practicum/RandomGetallen.icl b/1415/files/practicum/RandomGetallen.icl new file mode 100644 index 0000000..9d57268 --- /dev/null +++ b/1415/files/practicum/RandomGetallen.icl @@ -0,0 +1,20 @@ +implementation module RandomGetallen + +import StdEnv, Random + +Start :: *World -> ([Int],*World) +Start world +# (rs,world) = getNewRandomSeed world += (shuffle [1..10] rs,world) + +random_n :: Int RandomSeed -> ([Int],RandomSeed) +random_n ... + +random_inf :: RandomSeed -> [Int] +random_inf ... + +iterateSt :: (s -> (a,s)) s -> [a] +iterateSt ... + +shuffle :: [a] RandomSeed -> [a] +shuffle ... -- cgit v1.2.3