Lottó számok generálása véletlen számgenerátorral, parancssorból

Mindenkinek megvan a "tuti tippje” hogy melyek lehetnek a nyerő számok a következő lottó sorsoláson, és mindenkinek van egy biztos módszer arra hogyan választja ki azt az 5, 6, 7 számot amit megjátszik a következő húzáson. Van aki mindig ugyan azt a számokat játssza és van aki változatosan játszik, hétről hétre más számokkal. Ebben az esetben a számok választását sokféle különböző módszerre lehet bízni. Ha épp egy Linux terminál előtt vagy, előállíthatód a tippjeidet parancssorból is.

Türelmetleneknek itt van a parancs amit csak beillesztesz a parancssorba  és máris megvan a véletlenül generált számsorozat amit megjátszhatsz. Ha érdekelnek a részletek, olvass tovább.

clear;for i in {1..5}; do echo $((RANDOM%90+1)); done | sort -n

5 véletlen szám generálás  1-90 tartományból

clear;for i in {1..6}; do echo $((RANDOM%45+1)); done | sort -n

6 véletlen szám generálás  1-45 tartományból

clear;for i in {1..7}; do echo $((RANDOM%35+1)); done | sort -n

7 véletlen szám generálás  1-35 tartományból

Vegyük részletesen a dolgokat:

clear

Tiszta képernyővel kezdünk.

for i in {1..5}; do echo „”; done

Ez egy ciklus ami jelen esetben 5 alkalommal ismétlődik. A ciklus közepén,  a „do” után lévő parancs végrehajtódik.

echo $RANDOM

Ez a véletlen számgenerátor.

echo $((RANDOM%35+1))

Itt a 0 és 36 közötti tartományból ad egy egész számot.

A parancssorral akár matematikai műveleteket is lehet végezni. A kiszámítandó egyenletet a két zárójel közé kel zárni

$(( művelet ))

$(( 24/2 ))

"művelet" végrehajtása. Az echo szükséges elötte.

sort -n

A kapott számokat sorrendbe rendezzük. A -n szükséges a numerikus sorrend szerinti rendezéshez.

 

Hozzászólások

Greetings! This is my 1st comment here so I just wanted to give a quick

shout out and tell you I truly enjoy reading your posts.

Can you recommend any other blogs/websites/forums that deal with the same subjects?

Appreciate it!

Feel free to surf to my weblog - Taller Children

Appreciate this post. Let me try it out.

Look into my blog post: shoe lifts for women

I couldn't refrain from commenting. Very well written!

Take a look at my webpage - Table Rock Lake

Hi there everyone, it's my first go to see at this web site, and article

is genuinely fruitful in favor of me, keep up posting such articles or reviews.

Here is my page heel lifts for men

This is my first time visit at here and i am actually impressed to read all at single place.

my web blog :: TPR

Hello there, just became aware of your blog through

Google, and found that it is truly informative.

I am going to watch out for brussels. I'll appreciate if you

continue this in future. A lot of people will be benefited from

your writing. Cheers!

Stop by my homepage - Gel

Hey very nice blog!

Look into my blog post ... Teller (magician)

Touche. Outstanding arguments. Keep up the good effort.

Look into my website :: Talleres Loring

I am curious to find out what blog system you have been working with?

I'm experiencing some minor security problems with my latest blog and I would

like to find something more safeguarded. Do you have any solutions?

Check out my blog: shoe lifts insoles

Its like you read my mind! You seem to know so much about

this, like you wrote the book in it or something.

I think that you can do with a few pics to drive

the message home a little bit, but other than that, this is excellent blog.

An excellent read. I'll certainly be back.

My web blog :: Talleres de Transformacion Integral del Barrio

I was wondering if you ever considered changing the page layout of your blog?

Its very well written; I love what youve got

to say. But maybe you could a little more in the way of content so people could connect with it better.

Youve got an awful lot of text for only having 1 or two pictures.

Maybe you could space it out better?

Visit my blog - Tallebudgera Post Office

Hi there! This is my first comment here so I just wanted to

give a quick shout out and tell you I really enjoy reading through your blog posts.

Can you recommend any other blogs/websites/forums that

go over the same subjects? Thanks for your time!

Feel free to visit my site ... Tallgrass Beef Company

Hi great website! Does running a blog like this require a

lot of work? I have virtually no understanding of programming but I had been hoping to start my own blog in the

near future. Anyhow, if you have any recommendations or techniques for new blog owners please share.

I know this is off topic but I just needed to ask.

Cheers!

Stop by my web page; taller de escritores 2nd edition

Aw, this was a very nice post. Taking a few minutes and actual effort to generate a

very good article… but what can I say… I hesitate a lot and

never manage to get nearly anything done.

Here is my weblog: taller en ingles

Thank you for the good writeup. It if truth be told was once a amusement account it.

Glance complicated to far brought agreeable from you! By the

way, how can we keep up a correspondence?

Visit my website :: shoe lifts insoles

I am extremely impressed with your writing skills and also with the layout on your weblog.

Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it's rare to see a nice blog like this one nowadays.

Feel free to visit my web-site :: taller insoles

Valuable information. Lucky me I found your website by accident, and I

am shocked why this coincidence did not took place in advance!

I bookmarked it.

my web page - taller de afilar angola

You have made some decent points there. I checked on the web heel lifts for men

more information about the issue and found most people will go along with your

views on this website.

It is perfect time to make some plans for the future and it's time to be

happy. I've read this post and if I could I want to suggest

you some interesting things or tips. Maybe you could write

next articles referring to this article. I want to

read even more things about it!

my blog post Stronger

Hello! Someone in my Myspace group shared this site with

us so I came to look it over. I'm definitely loving the information. I'm book-marking and will be tweeting this to my followers!

Exceptional blog and excellent style and

design.

Feel free to surf to my webpage Table Rock Lake

Fantastic beat ! I would like to apprentice while you amend your web site, how can i subscribe for a blog site?

The account aided me a acceptable deal. I had been tiny bit acquainted of this your

broadcast offered bright clear concept

My blog ... Genuine Leather

Wow! In the end I got a webpage from where I can actually take useful information concerning my

study and knowledge.

Also visit my website - tallero

My coder is trying to convince me to move to .net from PHP.

I have always disliked the idea because of the expenses. But he's tryiong none the less.

I've been using WordPress on numerous websites shoe lifts for women 1 inch about a year and am

anxious about switching to another platform. I have heard good things about blogengine.net.

Is there a way I can transfer all my wordpress posts into

it? Any help would be greatly appreciated!

I'm really inspired with your writing abilities and also with

the structure on your weblog. Is that this a paid topic

or did you modify it your self? Either way stay up the nice high

quality writing, it is uncommon to peer a nice blog like this

one today..

My site; Tallensi

Valuable info. Fortunate me I found your website by accident, and I'm

surprised why this accident didn't took place in advance!

I bookmarked it.

Feel free to surf to my weblog: heel lifts

Everything is very open with a really clear clarification of the issues.

It was truly informative. Your site is extremely helpful.

Many thanks for sharing!

my website heel liftsi ?

What's up to all, because I am in fact eager of reading this

webpage's post to be updated regularly. It consists of fastidious stuff.

my page; shoelifts?????

Appreciating the commitment you put into your website and detailed information you

present. It's good to come across a blog every once shoe lifts in converse

a while that isn't the same out of date rehashed material.

Great read! I've bookmarked your site and I'm including your RSS feeds to my Google account.

I am truly grateful how to grow taller the owner

of this web page who has shared this wonderful piece of writing at

at this place.

Does your blog have a contact page? I'm having problems locating it

but, I'd like to shoot you an email. I've got some creative ideas for

your blog you might be interested in hearing. Either way,

great site and I look forward to seeing it improve

over time.

Here is my web blog; Talker

hello!,I like your writing very a lot! share we keep up a correspondence extra about your article on AOL?

I require an expert in this area where to buy shoe lifts

solve my problem. Maybe that is you! Taking a look ahead to see you.

I'd like to thank you for the efforts you've put in penning

this blog. I'm hoping to see the same high-grade blog posts by you in the future as well.

In fact, your creative writing abilities has inspired me to get

my own blog now ;)

my web page; Tallebudgera Creek

Thanks for a marvelous posting! I quite enjoyed reading it, you could be a great author.I will ensure that I bookmark your blog and may come back from now

on. I want to encourage continue your great posts, have a nice day!

Look into my homepage: tom cruise shoe lifts

Wonderful blog! Do you have any helpful hints for

aspiring writers? I'm planning to start my own blog

soon but I'm a little lost on everything.

Would you suggest starting with a free platform like Wordpress or go for a paid option? There are so

many choices out there that I'm totally confused ..

Any suggestions? Kudos!

Here is my blog - Tall-i Bakun

Appreciation to my father who told me on the topic

of this blog, this weblog is actually amazing.

My web blog ... Tatler (1709 journal)

I have been browsing online more than 4 hours today, yet I never found any interesting article like

yours. It's pretty worth enough for me. In my view,

if all webmasters and bloggers made good content as you did,

the internet will be a lot more useful than ever before.

Here is my website - heel lifts

With havin so much written content do you ever run into any issues

of plagorism or copyright violation? My site has a

lot of completely unique content I've either created myself or outsourced but

it looks like a lot of it is popping it up all over the internet without

my agreement. Do you know any methods to help reduce content from being stolen? I'd really appreciate

it.

my website :: Queensland

Thank you for sharing your thoughts. I really appreciate your efforts and

I am waiting shoe lifts for children your further

write ups thank you once again.

Its like you learn my thoughts! You appear to grasp so much

approximately this, such as you wrote the ebook in it

or something. I think that you could do with some % to pressure the message home a bit, but instead of that, this

is fantastic blog. An excellent read. I'll definitely

be back.

Here is my web-site ... taller de tapas

I am truly grateful to the holder of this web page who has shared this wonderful piece of writing at at this

time.

Also visit my blog; google:suggestrelevance

Very energetic post, I enjoyed that bit. Will

there be a part 2?

Here is my homepage; Queensland

We're a group of volunteers and opening a new scheme in our community.

Your website offered us with valuable info to work on. You have performed a formidable job and our

entire community shall be thankful to you.

Also visit my homepage; shoe lifts

Excellent post however I was wondering if you could write a litte more on this topic?

I'd be very thankful if you could elaborate a little bit

more. Appreciate it!

Here is my homepage ... Taller de Gráfica Popular

Thanks for the marvelous posting! I seriously enjoyed reading it, you could be a great

author. I will remember to bookmark your blog

and may come back down the road. I want to encourage that you continue your great writing, have

a nice holiday weekend!

Also visit my web-site ... heel lifts in boots

I do agree with all the ideas you've introduced Tallest building on Earth your post.

They are really convincing and will certainly work. Nonetheless, the posts are too

quick for newbies. May you please extend them a little from next time?

Thank you for the post.

Excellent post. I'm going through many of these issues as well..

My web blog - tom cruise shoe lifts

Howdy! Do you know if they make any plugins to help with SEO?

I'm trying to get my blog to rank for some targeted keywords but I'm not

seeing very good gains. If you know of any please

share. Many thanks!

Look at my web-site taller de escritores 2nd edition

Everything is very open with a precise clarification of

the issues. It was really informative. Your website is extremely helpful.

Thanks for sharing!

My blog post - al taller del maestro

Thank you for the auspicious writeup. It in fact was

a amusement account it. Look advanced to far added agreeable from

you! However, how could we communicate?

Take a look at my site google:suggestrelevance

Hey there, You've done an excellent job. I'll definitely digg it and personally suggest to

my friends. I'm confident they will be benefited from this web site.

my website :: google:suggestrelevance

Oldalak

Új hozzászólás

Filtered HTML

  • A webcímek és email címek automatikusan kattintható hivatkozásokká alakulnak.
  • Engedélyezett HTML jelölők: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.

Plain text

  • A HTML jelölők használata nem megengedett.
  • A webcímek és email címek automatikusan kattintható hivatkozásokká alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
Ezt a mezöt ember.fia nem.tölti ki.
CAPTCHA
Ez a művelet azért szükséges, mert nem szeretnék kéretlen bejegyzéseket az oldalra.
Kép CAPTCHA
Írd be a képen látható karaktereket. Köszönöm.