 	(/safari/).test(navigator.userAgent.toLowerCase())
 
 Utils.isTouch = ->
-	# This needs to be a little more extensive because we
-	# patch ontouchstart to fake Hammer
 	window.ontouchstart is null and
 	window.ontouchmove is null and
 	window.ontouchend is null

######################################################
# MATH FUNCTIONS

Utils.round = (value, decimals=0) ->
	d = Math.pow 10, decimals
	Math.round(value * d) / d

Utils.clamp = (value, a, b) ->


Utils.randomNumber = (a=0, b=1) ->
	# Return a random number between a and b
	Utils.mapRange Math.random(), 0, 1, a, b

Utils.randomImage = (layer, offset=50) ->

	width = Utils.round(layer.width, 0, 100, 100)
	height = Utils.round(layer.height, 0, 100, 100)
	
	# return "https://source.unsplash.com/category/nature/#{width}x#{height}"
	return "https://unsplash.it/#{width}/#{height}?image=#{layer.id + offset}"

Utils.defineEnum = (names = [], offset = 0, geometric = 0) ->
	Enum = {}
