randomN working