Rand block now accepts variables