Changeset 896 for cpp/frams/_demos/genomanipulation.cpp
- Timestamp:
- 11/30/19 01:30:22 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/genomanipulation.cpp
r742 r896 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 8Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2019 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 47 47 printf(" Current value of '%s' (%s) is '%s'\n", pi.id(i), pi.name(i), pi.get(i).c_str()); 48 48 char t[100]; 49 sprintf(t, "%g", minprop + (rnd01)*(maxprop - minprop));49 sprintf(t, "%g", minprop + rndDouble(maxprop - minprop)); 50 50 printf(" Setting new value... [ using ParamInterface::set() ]\n"); 51 51 pi.setFromString(i, t);
Note: See TracChangeset
for help on using the changeset viewer.