Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...

Get a random number

by Neia Posted 21st Oct 2016 at 11:20 PM - Updated 6th Jun 2020 at 3:36 PM by Neia
 
19 Comments / Replies (Who?) - 7 Feedback Posts, 11 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Test Subject
#2 Old 22nd Oct 2016 at 2:23 PM
Not sure what exactly what the random number is for.
Test Subject
THANKS POST
#3 Old 22nd Oct 2016 at 3:28 PM
Haha. Actually I could use this. I use a random number generator to determine several things in my game. I always needed to tab out every time I wanted to use it though, now I won't have to! How convenient!
Test Subject
THANKS POST
#4 Old 22nd Oct 2016 at 5:39 PM
Same as kittie887; I use random numbers to determine a lot of things in my game!

I really appreciate this!
Test Subject
#5 Old 22nd Oct 2016 at 6:26 PM
Quote: Originally posted by panyeman
Not sure what exactly what the random number is for.


Some Sims challenges require a random number. This is actually really helpful so people don't have to click off game to use a random number generator on a website!
Lab Assistant
THANKS POST
#6 Old 26th Oct 2016 at 8:07 PM
What a clever idea! Thanks a lot
Test Subject
THANKS POST
#7 Old 7th Nov 2016 at 8:31 AM
Sorry, but a random number of what exactly ?? .. People, objects, emotions ... or something else? ... And how to use well enter the command? Thank you
Field Researcher
Original Poster
#8 Old 7th Nov 2016 at 9:07 AM
Quote: Originally posted by LucreziaT
Sorry, but a random number of what exactly ?? .. People, objects, emotions ... or something else? ... And how to use well enter the command? Thank you


It's like rolling a virtual dice. You can use the number for anything you want.

The command is a new cheat code, and it's Ctrl + Maj + C to open the cheat console.
Test Subject
THANKS POST
#9 Old 8th Nov 2016 at 1:13 AM
Thank you for this. I like to randomize my sims' traits and aspirations, but unfortunately there is nothing built into the game to help you do this like there was in Sims 3. It will be nice to have this function in the game so I don't have to take the extra time to go to a website.
Lab Assistant
THANKS POST
#10 Old 23rd Dec 2016 at 12:46 PM
Very useful for using as a randomiser for traits/aspirations etc! Thank you
Test Subject
THANKS POST
#11 Old 12th Feb 2017 at 6:55 PM
Could you please make one for traits and aspirations for legacies? Like, one for toddlers, kids, teens to finally adults?
Test Subject
THANKS POST
#12 Old 16th Feb 2017 at 5:48 PM
Awesome, thank you! I hate tabbing out, sometimes I just ask my family members to give me a random # between 1 & ? lol but they get annoyed after awhile.
Test Subject
#13 Old 13th Jun 2017 at 6:44 PM
Just wondering, but what programs/techniques did you use to make a custom console command like this? I'm interested in making something similar.
Field Researcher
Original Poster
#14 Old 13th Jun 2017 at 10:33 PM
Quote: Originally posted by Aaronj3
Just wondering, but what programs/techniques did you use to make a custom console command like this? I'm interested in making something similar.


Python 3.3 and Notepad++ mainly. You'll also need a decompiler to get the scripts used by the game, there are several topics about it here on MTS, in the Create forum.
Test Subject
#15 Old 14th Jun 2017 at 4:40 PM
Quote: Originally posted by Neia
Python 3.3 and Notepad++ mainly. You'll also need a decompiler to get the scripts used by the game, there are several topics about it here on MTS, in the Create forum.
Thanks! I'll check that out
Test Subject
#16 Old 20th Jun 2018 at 6:51 PM
i love this so much. tabbing out to a web randomizer sucked.
Test Subject
#17 Old 21st Jul 2019 at 5:55 PM
I love the idea! It's working perfectly for me in gameplay mode. I'd like to use it in CAS too but I can't get it to work there. Is it supposed to work in CAS as well? I'm just wondering if it's a problem on my side or if it's just not a feature included in this mod. So far I had two results, first one was "Unable to execute command" in Create A Household. Then I went to gameplay, turned cheats and full CAS on and tried editing my existing sim, this time typing the command gave no return at all.
Test Subject
THANKS POST
#18 Old 7th Mar 2021 at 3:14 AM
this is exactly what i am looking for . was doing battles between my war units and i as using the dart board .. Thank !!! can you make a dice roll like baulder's gate 3 ? a ui of some sort ?
Test Subject
THANKS POST
#19 Old 8th Mar 2021 at 5:48 AM
is there a way to choose a smaller draw like 1- 20 ?
Test Subject
THANKS POST
#20 Old 20th Apr 2021 at 7:21 PM
This mod coluld be more awesome if it would use ingame object instead of console. For example it could be small dice object that can be bought and placed on table with interactiom 'roll the dice' and notification with result of 'rand 6' command. Or it could have several interactions with rand, rand 6, rand 20 etc.