How to generat 256 bit binary random numbers IN R PROGRAMMING LANGUAGE


I have  a question about R programming languge and I realy do not know where is the best place to be posted.

I would like to generat 256 bit binary random numbers.

I started with  rmvbin function but I dont know whether I am doning right or not , plase see below what I did:

Anyone can help in this?
Who is Participating?
TommySzalapskiConnect With a Mentor Commented:
Yes. Your way works.
Well, if you want a uniform random 256 bit integer, then getting 256 random bits at a .5 probability will certainly do the trick.
kwnanAuthor Commented:
that mean I am doing right?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.