Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*!
- Returns an integer from 1 to 10 indicating how attractive certain
- females are when identified by name.
- */
- function howHot(var name:String):Number {
- if (name == "Emma") {
- return 11;
- }
- else if (name == "Kate Winslet") {
- return 8;
- }
- return (rand() % 5) + 1;
- }
Add Comment
Please, Sign In to add comment