Jump to content

طلب شرح كود


Recommended Posts

هذا تحط رقمين بالكود

اول رقم يبدا من وين عشوائي

ثاني رقم اخر رقم عشوائي

هذا الكود يستعمل للارقام العشوائية

مثال

match.random ( 2, 9 )

راح يبدا من رقم اثنين م راح يجيب لك رقم عشوائي اقل من اثنين

الى تسعه

بالتوفيق

Link to comment
math.random(100) -- اذا تحط رقم واحد فقط راح يطلعلك رقم عشوائي من 0 الى الرقم الي انت كاتبة 
math.random(50, 100) -- اذا تحط رقمين راح يطلعلك رقم عشوائي بين الرقم الاول والرقم الثاني 

بالتوفيق

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...