Week 8, Lesson 3 - fitting values to patterns with 'fit'

In Haskell you can do

import System.Random
let pureGen = mkStdGen 137

take 5 $ randomRs(0,1.0) $ pureGen
take 100 $ randomRs(2,4) $ pureGen

unfortunately it is not that simple in Tidal Cycles since for obscure reasons it does not easily accept to import System.Random

I finally suceeded by adding :set -package Random at the top of my BootTidal.hs as explained in Week 4 lesson 2 - random marathon: rand, irand, mininotation randomness, scramble, shuffle, choose + more - #36 by abertier64

2 Likes