make random work