Git Product home page Git Product logo

Comments (17)

TeoColuccio avatar TeoColuccio commented on July 17, 2024

Ho fatto un abbozzo veloce.

from cai.

FabioZTessitore avatar FabioZTessitore commented on July 17, 2024

avevo detto di non scrivere codice ... e come previsto hai scritto solo fesserie

from cai.

FabioZTessitore avatar FabioZTessitore commented on July 17, 2024

ricominciamo. Il modulo random è responsabile di ... ?

from cai.

TeoColuccio avatar TeoColuccio commented on July 17, 2024

Estrarre 2 numeri casuali

from cai.

FabioZTessitore avatar FabioZTessitore commented on July 17, 2024

più o meno. Ricorda che il modulo è qualcosa di riutilizabile in altri programmi.
Quindi come dicevi prima sarà responsabile dell'inizializzazione del seme e sarà responsabile dell'estrazione di un numero casuale.

Tieni presente che il modulo random non ne sa (e non ne deve sapere) niente del programma che stai facendo

from cai.

TeoColuccio avatar TeoColuccio commented on July 17, 2024

Ah sì c'è anche l'inizializzazione del seme

from cai.

FabioZTessitore avatar FabioZTessitore commented on July 17, 2024

decidiamo i prototipi delle funzioni

from cai.

TeoColuccio avatar TeoColuccio commented on July 17, 2024

random_init() e random_extraction()

from cai.

FabioZTessitore avatar FabioZTessitore commented on July 17, 2024

random_init() te la passo.
l'altra no. In ogni caso devi specificare i parametri e dire cosa ci si aspetta che facciano

from cai.

TeoColuccio avatar TeoColuccio commented on July 17, 2024

random_init() non vuole nulla come parametro e inizializza il seme;
random_extraction() potrebbe avere come parametri un min e un max.

from cai.

FabioZTessitore avatar FabioZTessitore commented on July 17, 2024

va bene.
ma visto che siamo programmatori che ti costa scrivere i prototipi?

from cai.

TeoColuccio avatar TeoColuccio commented on July 17, 2024

Mo avete detto niente codice! ahah faccio subito

2016-06-07 22:34 GMT+02:00 Fabio Z Tessitore [email protected]:

va bene.
ma visto che siamo programmatori che ti costa scrivere i prototipi?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#2 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/APQmnc7Je5EkOMyqaXWHKpxX4XNP-WSsks5qJdXZgaJpZM4IvKw0
.

from cai.

FabioZTessitore avatar FabioZTessitore commented on July 17, 2024

qua.

from cai.

TeoColuccio avatar TeoColuccio commented on July 17, 2024

Ah ok
random_init();
random_extract(int min, int max);

from cai.

FabioZTessitore avatar FabioZTessitore commented on July 17, 2024

ok. crea solo il file random.h
Per il momento niente implementazione

from cai.

FabioZTessitore avatar FabioZTessitore commented on July 17, 2024

ps eppure hai mancato i tipi di ritorno hahaha

from cai.

TeoColuccio avatar TeoColuccio commented on July 17, 2024

Ahahah
void random_init();
int random_extract(int min, int max);

from cai.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.