Visual Basic Random Function In C