# Week 4 lesson 2 - random marathon: rand, irand, mininotation randomness, scramble, shuffle, choose + more

**URL:** <https://uzu.lurk.org/t/week-4-lesson-2-random-marathon-rand-irand-mininotation-randomness-scramble-shuffle-choose-more/685>\
**Category:** Week 4 - waveforms, randomness\
**Created:** [8 May 2020 09:20 UTC](https://uzu.lurk.org/t/week-4-lesson-2-random-marathon-rand-irand-mininotation-randomness-scramble-shuffle-choose-more/685 "2020-05-08T09:20:18Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ben](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ben/32/362_2.png) [@ben](https://uzu.lurk.org/u/ben)\
**Post date:** [9 May 2020 15:52 UTC](https://uzu.lurk.org/t/week-4-lesson-2-random-marathon-rand-irand-mininotation-randomness-scramble-shuffle-choose-more/685/9 "2020-05-09T15:52:37Z")

</div>

Hey @yaxu. Didn't you mention that this was a 'bug' with `repeatCycles` in the other thread over [here](https://club.tidalcycles.org/t/what-can-and-cant-be-controlled-with-midi-osc/641/3)?

> Looking at the repeatCycles type:
> 
> ```haskell
> repeatCycles :: Int -> Pattern a -> Pattern a
> 
> ```
> 
> That first parameter is an 'int', and not a pattern of ints. Actually it's only in the last couple of years that you've been able to use patterns as parameters in this way in Tidal.. (the inner workings of this are quite something to behold, it's amazing that it works so well in general..) So this is kind of a bug in Tidal that this parameter isn't 'patternable'. I've made a note to fix it [Make repeatCycles patternable · Issue #645 · tidalcycles/Tidal · GitHub](https://github.com/tidalcycles/Tidal/issues/645)

---

_[View the full topic](https://uzu.lurk.org/t/week-4-lesson-2-random-marathon-rand-irand-mininotation-randomness-scramble-shuffle-choose-more/685)._
