rand_transform probably works now