def tiles(ihtORsize, numtilings, floats, ints=[], readonly=False):
 qfloats = [floor((f * numtilings)) for f in floats]
 Tiles = []
 for tiling in range(numtilings):
  tilingX2 = (tiling * 2)
  coords = [tiling]
  b = tiling
  for q in qfloats:
   coords.append(((q + b) // numtilings))
   b += tilingX2
  coords.extend(ints)
  Tiles.append(hashcoords(coords, ihtORsize, readonly))
 return Tiles

def tiles ( ihtORsize , numtilings , floats , ints = [ ] , readonly = False ) : qfloats = [ floor ( ( f * numtilings ) ) for f in floats ] Tiles = [ ] for tiling in range ( numtilings ) : tilingX2 = ( tiling * 2 ) coords = [ tiling ] b = tiling for q in qfloats : coords . append ( ( ( q + b ) // numtilings ) ) b += tilingX2 coords . extend ( ints ) Tiles . append ( hashcoords ( coords , ihtORsize , readonly ) ) return Tiles
returns num-tilings tile indices corresponding to the floats and ints .