Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,104 questions

40,777 answers

573 users

How to generate a vector of N random numbers from 0 to 1 in R

1 Answer

0 votes
n = 5

vec = runif(n)

print(vec)




# run:
#
# [1] 0.32086677 0.25236783 0.06867777 0.73992203 0.76751016
#

 





answered Jul 10, 2021 by avibootz

Related questions

2 answers 85 views
1 answer 71 views
1 answer 55 views
3 answers 95 views
95 views asked Jul 5, 2021 by avibootz
...