BookmarkSubscribeRSS Feed
BrockJarvie
Obsidian | Level 7

Hi, e are learning about proc SQL functions / creating advanced expressions within the Querybuilder, and The question I'm on is asking for me to generate a random number from a normal distribution (μ =50, σ=10)

So the expression I've created for the problem is NORMAL(50, 10)

Is that the correct way to answer the problem? 

3 REPLIES 3
PaigeMiller
Diamond | Level 26
random('normal',50,10)

Note: your titles wants a sigma of 100, your text wants a sigma of 10, the above snippet of code is a sigma of 10

--
Paige Miller
PGStats
Opal | Level 21

The function to generate random numbers is named RAND

PG

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 808 views
  • 0 likes
  • 3 in conversation