Post a code that relies heavily on random functions! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Post a code that relies heavily on random functions!

I'm interested to see the true potential of random functions, Im looking for ideas and inspiration... Anyone have any codes the rely heavily on random functions? post them in comments and I'll upvote, be sure to upvote mine! Thanks guys. https://code.sololearn.com/cL3Rx2Cz1W1y/?ref=app

19th Apr 2018, 11:44 AM
Jordan Patterson
Jordan Patterson - avatar
9 Answers
29th Apr 2018, 12:55 PM
🤖 Basile Laderchi
+ 2
Jordan Patterson in the v2.1 on line 768 you can either change the seed to get another galaxy or comment out the line to get a different galaxy every time
3rd May 2018, 7:44 AM
🤖 Basile Laderchi
+ 2
Jordan Patterson on line 768 call the seed method without parameters
3rd May 2018, 9:27 AM
🤖 Basile Laderchi
+ 2
3rd May 2018, 9:33 AM
🤖 Basile Laderchi
+ 1
🤖 Basile Laderchi I really like your galaxy generator, makes sense and is fun to play with!
3rd May 2018, 5:05 AM
Jordan Patterson
Jordan Patterson - avatar
+ 1
🤖 Basile Laderchi that's very nice! Is their a way to set the seed relative to the current time? That's how to achieve true random.. I'm not sure if you're able to do them on your languages but!
3rd May 2018, 9:14 AM
Jordan Patterson
Jordan Patterson - avatar
+ 1
🤖 Basile Laderchi Truly amazing
3rd May 2018, 9:29 AM
Jordan Patterson
Jordan Patterson - avatar
0
My Destiny-Esque Weapon Perk Generator. https://code.sololearn.com/cDXPmeYlvX37/?ref=app
4th May 2018, 2:58 PM
Richard Case
Richard Case - avatar