I want to create a function randrange(start, stop, step)
that every time yields a random number between start and stop (exclusive). The difficult part is that I can't use any lists or other kind of iterators to keep track of already yields number, but only others generator (as range for example) because I want to keep this code light and fast. Any ideas?
Aucun commentaire:
Enregistrer un commentaire