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

Hi

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?
Untitled.jpg
kwnanAsked:
Who is Participating?
 
TommySzalapskiConnect With a Mentor Commented:
Yes. Your way works.
0
 
TommySzalapskiCommented:
Well, if you want a uniform random 256 bit integer, then getting 256 random bits at a .5 probability will certainly do the trick.
0
 
kwnanAuthor Commented:
that mean I am doing right?
0
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.