Skip to main content
VGani.1
Associate III
October 19, 2021
Solved

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

..

This topic has been closed for replies.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
October 19, 2021

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.

2 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
October 19, 2021

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
October 19, 2021

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"""