Jump to content

JohnDoe

Active Members
  • Posts

    104
  • Joined

  • Last visited

Converted

  • Interests
    Web Development

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

JohnDoe's Achievements

Newbie

Newbie (1/14)

11

Reputation

  1. Am un exercitiu de facut, trebuie un algoritm (in functia big_dice() ) care sa foloseasca functia dice() si sa returneze numere random de la 1-100, ma puteti ajuta? Codul este asta <?php /* * Without using the rand() function, can you make a big_dice() function * which returns a random int between 1-100, with even distribution * * You can and must use the dice() function within the big_dice() function * * Some simple testing code is included at the bottom to ensure * even distribution and to calculate run-time. * * DELIVERABLES: * * -- All code, PHP files, etc., necessary to run your solution * -- A Google Docs graph of the distribution of your results from the * test function below /** * This is your only input function (use instead of rand()) * @ return int */ function dice() { return rand(1, 6); } /** * Here's the test -- create a random number between 1 and 100 * @ return int $result number between 1 and 100 */ function big_dice() { /* figure out how to use the dice() function (as much as you like) and just about anything else to generate a random number between 1 and 100, with even distribution but you can not use the rand() function or it's variants... you can only use (and must use) the dice() function to generate it. dice(); */ return $result; } /** * And here's the test of the big_dice() function * echo's to page * @ return null */ function test_big_dice($test_limit = 100000) { $big_dice_rolls = array(); $start = microtime(true); for ($i=0; $i<$test_limit; $i++) { $big_dice_rolls[] = big_dice(); } $stop = microtime(true); $duration = round((($stop - $start)), 4); $breakdown = array_count_values($big_dice_rolls); arsort($breakdown); // anomolies would be at the top or bottom echo "Tested {$test_limit} rolls in ~{$duration} sec<br/>"; echo "Ended up with ".count($breakdown)." total outputs<br/>"; foreach ( $breakdown as $int => $occurances ) { $pecentage = round($occurances / $test_limit * 100, 2); echo "{$int} => [{$pecentage}%] {$occurances}<br/>"; } } # might as well test this thing! test_big_dice(); ?>
  2. ^^
  3. Steam level: 26 Numar de jocuri: 258 DLC-uri: 152 (acestea nu sunt incluse in numarul jocurilor) Alte informatii: Il dau pentru ca are VAC ban pe CS:GO, adevarul e ca nu stiu de ce am luat ban-ul... Asta inseamna ca nu mai puteti juca urmatoarele jocuri pe servere protejate VAC ( sursa1 ; sursa2 ) Counter-Strike: Global Offensive Counter-Strike: Source Day of Defeat: Source Half-Life Deathmatch Source Half-Life 2: Deathmatch Source SDK Base (required for mods) Team Fortress 2 Lista jocuri 'importante': link [LIST] [*]Rust [*]Sleeping Dogs™ [*]Saints Row: The Third [*]Saints Row IV [*]Terraria [*]Painkiller Hell & Damnation [*]Tomb Raider [*]Sniper Elite: Nazi Zombie Army 2 [*]Goat Simulator [*]Brütal Legend [*]DmC Devil May Cry [*]BioShock Infinite [*]PAYDAY 2 [*]Hitman: Absolution [*]BioShock 2 [*]Mafia II [*]Reus [*]Dishonored [*]Surgeon Simulator 2013 [*]Left 4 Dead 2 [*]Payday: the heist [*]Shadow Warrior [*]Dead Island [*]Dead Island Riptide [*]Contagion [*]The Stanley Parable [*]Ridge Racer™ Unbounded [*]Lucius [*]Universe Sandbox [*]Borderlands 2 [*]Far Cry® 3 [*]Prototype [*]How to Survive [*]Mortal Kombat Komplete Edition [*]Interstellar Marines [*]Battlefield: Bad Company 2 [*]Darksiders II [*]Bully: Scholarship Edition [*]Grand Theft Auto: Vice City [*]Euro Truck Simulator [*]Sniper Elite V2 [*]Grand Theft Auto IV [*]Game of Thrones [/LIST] List completa jocuri: link [LIST] [*]The 39 Steps [*]8BitBoy [*]8BitMMO [*]A.V.A - Alliance of Valiant Arms [*]Adventures of Shuggy [*]Aerena [*]Afterfall InSanity Extended Edition [*]Alien Shooter: Revisited [*]Alpha Prime [*]Anna - Extended Edition [*]Anomaly Warzone Earth [*]AquaNox 2: Revelation [*]ArcaniA – Gothic 4 [*]Archeblade [*]Arma 2 [*]Arma 2: Operation Arrowhead Demo [*]Arma Tactics [*]Arma: Gold Edition [*]Audiosurf [*]Avadon: The Black Fortress [*]Avencast [*]Awesomenauts [*]Batman: Arkham Asylum GOTY Edition [*]Battlefield: Bad Company 2 [*]Bejeweled 3 [*]The Binding of Isaac [*]BioShock 2 [*]BioShock Infinite [*]BIT.TRIP RUNNER [*]Blacklight: Retribution [*]Blocks That Matter [*]Blood Bowl: Legendary Edition [*]BookWorm Deluxe [*]Borderlands 2 [*]Botanicula [*]Bridge Project [*]Brütal Legend [*]Bully: Scholarship Edition [*]Burnout Paradise: The Ultimate Box [*]Circuits [*]Cities XL Platinum [*]Clive Barker's Jericho [*]Closure [*]Command and Conquer: Red Alert 3 - Uprising [*]Company of Heroes 2 [*]Confrontation [*]Contagion [*]Counter-Strike [*]Counter-Strike: Condition Zero [*]Counter-Strike: Condition Zero Deleted Scenes [*]Counter-Strike: Global Offensive [*]Counter-Strike: Source [*]Crysis 2 Maximum Edition [*]Cubetractor [*]Darksiders II [*]Dawn of Fantasy: Kingdom Wars [*]Day of Defeat [*]Day of Defeat: Source [*]Day One: Garry's Incident [*]Dead Island [*]Dead Island Riptide [*]Dead Island: Epidemic [*]Dead Sky [*]Dead Space [*]Deadly 30 [*]Deathmatch Classic [*]Defense Grid: Resurgence Map Pack 1 [*]Defense Grid: Resurgence Map Pack 2 [*]Defense Grid: Resurgence Map Pack 3 [*]Defense Grid: Resurgence Map Pack 4 [*]Defense Grid: The Awakening [*]The Desolate Hope [*]Dishonored [*]District 187 [*]Divinity II: Developer's Cut [*]DmC Devil May Cry [*]Dollar Dash [*]Dota 2 [*]Duke Nukem 3D: Megaton Edition [*]Dungeon Defenders [*]Dungeonland [*]Dungeonland - All access pass [*]Dungeons of Dredmor [*]Dwarfs!? [*]Eets Munchies [*]Eldritch [*]Enclave [*]Escape Rosecliff Island [*]Estranged: Act I [*]Euro Truck Simulator [*]Europa Universalis III [*]F.E.A.R. 2: Project Origin [*]F.E.A.R. 3 [*]Fairy Bloom Freesia [*]Far Cry® 3 [*]Feeding Frenzy 2: Shipwreck Showdown Deluxe [*]Final Rush [*]The Fish Fillets 2 [*]Fistful of Frags [*]Floating Point [*]Fortix 2 [*]Free to Play [*]Game of Thrones [*]Garry's Mod [*]Giana Sisters: Twisted Dreams [*]Goat Simulator [*]Grand Theft Auto IV [*]Grand Theft Auto: Episodes from Liberty City [*]Grand Theft Auto: Vice City [*]Grand Theft Auto: Vice City [*]Gravi [*]Gravity Badgers [*]Grimm [*]GT Power Expansion [*]The Guild II [*]The Guild II - Pirates of the European Seas [*]The Guild II: Renaissance [*]Guncraft [*]Guns of Icarus Online [*]Hack, Slash, Loot [*]Half-Life 2: Deathmatch [*]Hard Reset [*]Hard Reset: Exile DLC [*]HAWKEN [*]Hitman: Absolution [*]Hotline Miami [*]How to Survive [*]Hydrophobia: Prophecy [*]Ignite [*]IL-2 Sturmovik: 1946 [*]Infected: The Twin Vaccine - Collector's Edition [*]Interstellar Marines [*]Iron Grip: Marauders [*]Iron Grip: Warlord [*]Jamestown [*]Joe Danger 2: The Movie [*]Just Cause 2 [*]Just Cause 2: Multiplayer Mod [*]Killing Floor [*]Killing Floor Mod: Defence Alliance 2 [*]Left 4 Dead 2 [*]Legendary [*]Legends of Aethereus [*]Leviathan: Warships [*]LIMBO [*]Loadout [*]The Lord of the Rings: War in the North [*]Lucius [*]LYNE [*]Mafia II [*]Magicka: Wizard Wars [*]Mark of the Ninja [*]Marvel Heroes 2015 [*]McPixel [*]Medal of Honor Pre-Order [*]Medal of Honor™ Multiplayer [*]Medal of Honor™ Single Player [*]Metro 2033 [*]The Mighty Quest For Epic Loot [*]Mirror's Edge [*]Montas [*]Mortal Kombat Komplete Edition [*]Motte Island [*]Neighbours from Hell [*]Neighbours from Hell 2 [*]No More Room in Hell [*]Ohm Studio [*]Overlord [*]Overlord: Raising Hell [*]Painkiller Hell & Damnation [*]Painkiller: Recurring Evil [*]Painkiller: Redemption [*]Paranautical Activity [*]Path of Exile [*]PAYDAY 2 [*]PAYDAY: The Heist [*]Peggle Deluxe [*]Pid [*]Portal [*]Portal 2 [*]Post Apocalyptic Mayhem [*]POSTAL [*]Project Cyber [*]Prototype [*]RACE 07 [*]RACE 07 - Formula RaceRoom Add-On [*]RAW - Realms of Ancient War [*]Real Warfare 2: Northern Crusades [*]Realm of the Mad God [*]Red Faction: Armageddon [*]Red Orchestra 2: Heroes of Stalingrad - Single Player [*]Redshirt [*]Rekoil [*]Restaurant Empire II [*]The Retro Expansion [*]Retrovirus [*]Reus [*]Reversion - The Escape [*]Ricochet [*]RIDGE RACER™ Driftopia [*]Ridge Racer™ Unbounded [*]Risen [*]Risen 2 - Dark Waters [*]Rising Storm/Red Orchestra 2 Multiplayer [*]RPG Maker VX Ace [*]RPG Maker: Royal Tiles Resource Pack [*]RPG Maker: Tyler Warren First 50 Battler Pack [*]Rush Bros [*]Rust [*]Sacred 2 Gold [*]Sacred Citadel [*]Saints Row 2 [*]Saints Row IV [*]Saints Row: The Third [*]Sanctum [*]Sanctum 2 [*]Serious Sam HD: The First Encounter [*]Shadow Warrior [*]Shadow Warrior Classic Redux [*]Shank 2 [*]Shatter [*]The Showdown Effect [*]Shufflepuck Cantina Deluxe [*]Sid Meier's Civilization V [*]Sine Mora [*]Skyborn [*]SkyDrift [*]Sleeping Dogs™ [*]Sniper Elite V2 [*]Sniper Elite: Nazi Zombie Army 2 [*]Space Pirates and Zombies [*]SpaceChem [*]SpellForce 2 - Faith in Destiny [*]Spirits [*]The Stanley Parable [*]STCC II [*]Subject 9 [*]Super Hexagon [*]Super Sanctum TD [*]Superfrog HD [*]Supreme Commander [*]Supreme Commander: Forged Alliance [*]Surgeon Simulator 2013 [*]Sweet Lily Dreams [*]Sword of the Stars II: Enhanced Edition [*]T.E.C. 3001 [*]Take On Helicopters [*]Team Fortress 2 [*]Terraria [*]Thief Gold [*]Thomas Was Alone [*]To the Moon [*]Tom Clancy's Ghost Recon Phantoms - EU [*]Tomb Raider [*]Tomb Raider: Legend [*]Trainz Simulator 12 [*]Trine 2 [*]Tropico [*]Tropico 2: Pirate Cove [*]Tropico 3 - Steam Special Edition [*]Tropico 3: Absolute Power [*]UFO: Afterlight [*]Unearthed: Trail of Ibn Battuta - Episode 1 - Gold Edition [*]Universe Sandbox [*]Viscera Cleanup Detail: Shadow Warrior [*]The Void [*]Volt [*]VVVVVV [*]War of the Roses [*]War of the Roses Balance Beta [*]War of the Roses: Kingmaker [*]Warframe [*]Warlock - Master of the Arcane [*]Wildlife Park 3 [*]World of Guns: Gun Disassembly [*]Worms Crazy Golf [*]Worms Reloaded [*]Worms Ultimate Mayhem [*]The WTCC 2010 Pack [*]Yet Another Zombie Defense [*]Zack Zero [*]Zeno Clash [*]Zeno Clash 2 [/LIST] Mai am si cateva sute de iteme (backgrounduri, emoticons, iteme dota, csgo, tf2...) in inventory. Accept schimburi cu alt cont de steam, iteme CS:GO (sau dota/tf2) care sa valoreze ceva pe market, sau alte chestii... N-am nici un pret fix, orice oferta e binevenita atat timp cat nu e bataie de joc, nici nu cer mult -- Prefer sa vorbim pe privat Contul este al meu, nu este furat (ca vad ca p-aici sunt multi cu o gramada de conturi furate de vanzare...)
  4. 834340320878fbe4b15cfe57e4ee63f6 44 hours
  5. 1eb8c9b542ae1f1d99b83577c9053a89 1 day & 15 hours
  6. 613762842498fe72f42e3775e5bb0417 1 day 16 hours
  7. L-am cumparat dupa cateva ore dupa ce a aparut pe humblebundle.com. // a aparut de (7 zile) - (cat timp a mai ramas). E weekly, se pun alte jocuri la fiecare 7 zile.
  8. 720839436190462bd0c88641fe7ace70 1 day 16 hours
  9. 22 hours 0391a7c58c57b6383f3a980e432c8a45
  10. 8158e1d64b95b072f39c77f95f2d678d 17 hours
  11. Adica homepage-ul forumului? Sau ceva pentru blog?
  12. Acum am venit de la concurs, subiecte destul de grele si la proiect nu puteam sa ne facem singuri ce vrem ca proiect ci sa facem exact ce scrie pe subiect... Nu mi-a placut cum au schimbat concursul... o MARE prostie.
  13. Preciz?ri privind organizarea ?i desf??urarea Olimpiadei de Tehnologia Informa?iei Anul ?colar 2012-2013 ---------- Si eu merg si pe judetul meu locul 1 este ca si luat de mine. Anul trecut n-am fost prea "inspirat" si am luat doar locul 3.
  14. Daca ajung sa am in minus cateva sunte de dolari si nu vreau sa mai folosesc contul, pot sa scap fara sa platesc suma care e in minus?
×
×
  • Create New...