cancel
Showing results for 
Search instead for 
Did you mean: 

I want to generate a random number. How to define rand function in cube ide?? Any example program will be more helpful??

VGani.1
Associate III
 
1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

You can find tons of examples with source code in the repository for your respective STM32, either in your local repository directory, or in the Github repository, e.g. the one for STM32G4. Just look for directories with RNG in their name.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

You can find tons of examples with source code in the repository for your respective STM32, either in your local repository directory, or in the Github repository, e.g. the one for STM32G4. Just look for directories with RNG in their name.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Cristiana SCARAMEL
ST Employee

Hi @Community member​,

since your question is about STM32CubeIDE, I removed the topic Motor Control Hardware and add the right ones.

If you feel a post has answered your question, please click "Accept as Solution"