Fixed random

Small fix to fix random().