Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. randomList = list()
  2.  
  3.  
  4.  
  5. scienceFunction <- function(xMean){
  6. time <- 0
  7. score <- 28
  8. timeList <- list()
  9. while (time < 150){
  10. randomList <- rnorm(30,xMean,1)
  11. y <- sample(randomList, 1)
  12. # time = time + time to think of a word + time to type word
  13. time <- time + y + 1.4
  14. timeList[[time]] <- score
  15. print(time)
  16. score <- score + 28
  17. xMean <- xMean + 1.1
  18. }
  19. return(timeList)
  20. }
  21.  
  22. randomList <- scienceFunction(7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement