Guest User

Untitled

a guest
Jun 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. /*!
  3. Returns an integer from 1 to 10 indicating how attractive certain
  4. females are when identified by name.
  5. */
  6. function howHot(var name:String):Number {
  7. if (name == "Emma") {
  8. return 11;
  9. }
  10. else if (name == "Kate Winslet") {
  11. return 8;
  12. }
  13. return (rand() % 5) + 1;
  14. }
Add Comment
Please, Sign In to add comment